Companion

object Companion

Functions

Link copied to clipboard
fun A_Atom.bundleOrCreate(): A_Bundle

Answer the message bundle associated with this atom. If the atom does not yet have a message bundle associated with it, create one for that purpose and install it. The creation of the bundle is atomic, ensuring multiple fibers attempting to create the atom's bundle will agree about which bundle was created and installed in the atom.

Link copied to clipboard
fun A_Atom.getAtomProperty(key: A_Atom): AvailObject

Look up a property of this atom. Normal atoms have properties that can be set and read in this way, but specifically not enumerated by Avail code. You can see anything that you know how to look for, but everything else is thereby encapsulated.

Link copied to clipboard
fun A_Atom.setAtomBundle(bundle: A_Bundle)
Link copied to clipboard
fun A_Atom.setAtomProperty(key: A_Atom, value: A_BasicObject)

Set the specified property of this atom to the specified value. Normal atoms have properties that can be set and read in this way, but specifically not enumerated by Avail code. You can see anything that you know how to look for, but everything else is thereby encapsulated.

Properties

Link copied to clipboard
val A_Atom.atomName: A_String

Answer the descriptive string that was supplied when this atom was created. The string didn't have to be unique within the issuingModule, but certain operations might only work if it happens to be.

Link copied to clipboard
val A_Atom.bundleOrNil: A_Bundle

Answer the message bundle associated with this atom. If the atom does not yet have a message bundle associated with it, answer nil.

Link copied to clipboard
val A_Atom.extractBoolean: Boolean

Extract a Java boolean from this atom. The atom must be either the trueObject or the falseObject.

Link copied to clipboard
val A_Atom.isAtomSpecial: Boolean

Answer whether this atom is specially known to the Avail virtual machine.

Link copied to clipboard
val A_Atom.issuingModule: A_Module

Answer the module within which this atom was created.