|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object | +--simkin.ExecutableContext
This class stores info about the current execution context - such the name of the current script and the line number being executed. You should create a new one of these for each invocation of a chain of calls into the Simkin interpreter. e.g.
ExecutableContext ctxt=new ExecutableContext(m_Interpreter);
obj.method("onClick",args,ctxt);
| Constructor Summary | |
ExecutableContext(Interpreter interp)
|
|
| Method Summary | |
Interpreter |
getInterpreter()
Returns the interpreter associated with this context |
StackFrame |
getTopFrame()
This method returns the current StackFrame active in the interpreter |
void |
popStackFrame()
takes the top stack frame off the stack |
void |
pushStackFrame(StackFrame frame)
puts a new stack frame on the stack |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public ExecutableContext(Interpreter interp)
| Method Detail |
public Interpreter getInterpreter()
public void pushStackFrame(StackFrame frame)
frame - a new stack framepublic void popStackFrame()
public StackFrame getTopFrame()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||