simkin
Class ExecutableContext

java.lang.Object
  |
  +--simkin.ExecutableContext

public class ExecutableContext
extends java.lang.Object

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

ExecutableContext

public ExecutableContext(Interpreter interp)
Method Detail

getInterpreter

public Interpreter getInterpreter()
Returns the interpreter associated with this context

Returns:
the interpreter associated with this context

pushStackFrame

public void pushStackFrame(StackFrame frame)
puts a new stack frame on the stack

Parameters:
frame - a new stack frame

popStackFrame

public void popStackFrame()
takes the top stack frame off the stack


getTopFrame

public StackFrame getTopFrame()
This method returns the current StackFrame active in the interpreter

Returns:
the top of the Simkin stack