Next: , Previous: BlockClosure class-testing, Up: BlockClosure


1.11.3 BlockClosure: accessing

argumentCount
Answer the number of arguments passed to the receiver


block
Answer the CompiledBlock which contains the receiver's bytecodes


block: aCompiledBlock
Set the CompiledBlock which contains the receiver's bytecodes


finalIP
Answer the last instruction that can be executed by the receiver


fixTemps
This should fix the values of the temporary variables used in the block that are ordinarily shared with the method in which the block is defined. Not defined yet, but it is not harmful that it isn't. Answer the receiver.


initialIP
Answer the initial instruction pointer into the receiver.


method
Answer the CompiledMethod in which the receiver lies


numArgs
Answer the number of arguments passed to the receiver


numTemps
Answer the number of temporary variables used by the receiver


outerContext
Answer the method/block context which is the immediate outer of the receiver


outerContext: containingContext
Set the method/block context which is the immediate outer of the receiver


receiver
Answer the object that is used as `self' when executing the receiver (if nil, it might mean that the receiver is not valid though...)


receiver: anObject
Set the object that is used as `self' when executing the receiver


stackDepth
Answer the number of stack slots needed for the receiver