|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.zmpp.vm.RoutineContext
public class RoutineContext
This class holds information about a subroutine.
Constructor Summary | |
---|---|
RoutineContext(int startAddress,
int numLocalVariables)
Constructor. |
Method Summary | |
---|---|
int |
getInvocationStackPointer()
Returns the stack pointer at invocation time. |
short |
getLocalVariable(int localNum)
Retrieves the value of the specified local variable. |
int |
getNumArguments()
Returns the number of arguments. |
int |
getNumLocalVariables()
Returns the number of local variables. |
int |
getReturnAddress()
Returns the routine's return address. |
int |
getReturnVariable()
Returns the routine's return variable number. |
int |
getStartAddress()
Returns this routine's start address. |
void |
setInvocationStackPointer(int stackpointer)
Sets the stack pointer at invocation time. |
void |
setLocalVariable(int localNum,
short value)
Sets a value to the specified local variable. |
void |
setNumArguments(int numArgs)
Sets the number of arguments. |
void |
setReturnAddress(int address)
Sets the return address. |
void |
setReturnVariable(int varnum)
Sets the routine's return variable number. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public RoutineContext(int startAddress, int numLocalVariables)
startAddress
- the routine's start addressnumLocalVariables
- the number of local variablesMethod Detail |
---|
public void setNumArguments(int numArgs)
numArgs
- the number of argumentspublic int getNumArguments()
public int getNumLocalVariables()
public void setLocalVariable(int localNum, short value)
localNum
- the local variable number, starting with 0value
- the valuepublic short getLocalVariable(int localNum)
localNum
- the local variable number, starting at 0
public int getStartAddress()
public int getReturnAddress()
public void setReturnAddress(int address)
address
- the return addresspublic int getReturnVariable()
public void setReturnVariable(int varnum)
varnum
- the return variable numberpublic int getInvocationStackPointer()
public void setInvocationStackPointer(int stackpointer)
stackpointer
- the stack pointer at invocation time.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |