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


1.9.3 Behavior: accessing the method dictionary

>> selector

Return the compiled method associated with selector, from the local method dictionary. Error if not found.

allSelectors

Answer a Set of all the selectors understood by the receiver

compiledMethodAt: selector

Return the compiled method associated with selector, from the local method dictionary. Error if not found.

compiledMethodAt: selector ifAbsent: aBlock

Return the compiled method associated with selector, from the local method dictionary. Evaluate aBlock if not found.

formattedSourceStringAt: selector

Answer the method source code as a formatted string (if available) for the given selector. Requires package Parser.

lookupAllSelectors: aSelector

Answer a Set of all the compiled method associated with selector. from the local method dictionary and all of the superclasses.

lookupSelector: aSelector

Return the compiled method associated with selector, from the local method dictionary or one of a superclass; return nil if not found.

parseTreeFor: selector

Answer the parse tree for the given selector, or nil if there was an error. Requires the Parser package to be loaded.

selectorAt: method

Return selector for the given CompiledMethod

selectors

Answer a Set of the receiver’s selectors

sourceCodeAt: selector

Answer source code (if available) for the given selector.

sourceCodeAt: selector ifAbsent: aBlock

Answer source code (if available) for the given selector.

sourceMethodAt: selector

This is too dependent on the original implementation


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