contains behavior related to reflection

Mimics
Inactive cells
Active cells
Specs
Inactive cells (details)
inspect = "DefaultBehavior Reflection"
kind = "DefaultBehavior Reflection"
notice = "DefaultBehavior Reflection"
Active cells (details)
!=(other)

returns false if the left hand side is equal to the right hand side. exactly what this means depend on the object. the default behavior of Ioke objects is to only be equal if they are the same instance.

asText()

returns a textual representation of the object called on.

become!(objectToBecome)

modifies the receiver to be in all ways identical to the argument. if the receiver is nil, true or false, this method can't be used - but those are the only exceptions. it's generally not recommended to use it on kinds and objects that are important for the Ioke runtime, since the result might be highly unpredictable.

derive()

calls mimic.

method(
  mimic)
freeze!()

ensures that the receiver is frozen

frozen?()

returns true if the receiver is frozen, otherwise false

in?(aList)

returns true if the receiver is included in the argument. sends 'include?' to the argument to find this out

method(aList, 
  aList include?(self))
is?(potentialMimic)

Takes one evaluated argument and returns either true or false if this object or one of it's mimics mimics that argument. exactly the same as 'mimics?'

kind?(name)

Takes one evaluated Text argument and returns either true or false if this object or one of it's mimics have the kind of the name specified

mimic!(newMimic)

Takes one evaluated argument and adds it to the list of mimics for the receiver. the receiver will be returned.

mimics()

returns a list of all the mimics of the receiver. it will not be the same list as is used to back the object, so modifications to this list will not show up in the object.

mimics?(potentialMimic)

Takes one evaluated argument and returns either true or false if this object or one of it's mimics mimics that argument

prependMimic!(newMimic)

Takes one evaluated argument and prepends it to the list of mimics for the receiver. the receiver will be returned.

removeAllMimics!()

removes all mimics on the receiver, and returns the receiver

removeMimic!(mimicToRemove)

removes the argument mimic from the list of all mimics on the receiver. will do nothing if the receiver has no such mimic. it returns the receiver

same?(other)

returns true if the evaluated argument is the same reference as the receiver, false otherwise.

send(messageName, +[arguments], +:keywordArguments)

takes the name of a message to send, and the arguments to give it. send should generally behave exactly as if you had sent the message itself - except that you can give a variable containing the name.

thaw!()

ensures that the receiver is not frozen

uniqueHexId()

returns a text hex representation of the receiver in upper case hex literal, starting with 0x. This value is based on System.identityHashCode, and as such is not totally guaranteed to be totally unique. but almost.