Next: , Previous: , Up: Behavior   [Index]


1.9.2 Behavior: accessing instances and variables

allClassVarNames

Return all the class variables understood by the receiver

allInstVarNames

Answer the names of every instance variables the receiver contained in the receiver’s instances

allInstances

Returns a set of all instances of the receiver

allSharedPoolDictionaries

Return the shared pools defined by the class and any of its superclasses, in the correct search order.

allSharedPools

Return the names of the shared pools defined by the class and any of its superclasses, in the correct search order.

classPool

Answer the class pool dictionary. Since Behavior does not support classes with class variables, we answer an empty one; adding variables to it results in an error.

classVarNames

Answer all the class variables for instances of the receiver

indexOfInstVar: aString

Answer the index of aString in the fixed instance variables of the instances of the receiver, or 0 if the variable is missing.

indexOfInstVar: aString ifAbsent: aBlock

Answer the index of aString in the fixed instance variables of the instances of the receiver, or 0 if the variable is missing.

instVarNames

Answer an Array containing the instance variables defined by the receiver

instanceCount

Return a count of all the instances of the receiver

sharedPools

Return the names of the shared pools defined by the class

subclassInstVarNames

Answer the names of the instance variables the receiver inherited from its superclass


Next: , Previous: , Up: Behavior   [Index]