simkin
Interface StatementStepper


public interface StatementStepper

This interface is implemented by objects which are called by the Interpreter when statements are executed


Method Summary
 boolean compoundStatementExecuted(java.lang.String location, int line_num, java.lang.Object obj, java.util.Hashtable local_vars)
          This method is called each time a compound statement is executed by the interpreter, just before the statement is performed
 boolean statementExecuted(java.lang.String location, int line_num, java.lang.Object obj, java.util.Hashtable local_vars, int statement_type)
          This method is called each time a statement is executed by the interpreter, just before the statement is performed
 

Method Detail

statementExecuted

public boolean statementExecuted(java.lang.String location,
                                 int line_num,
                                 java.lang.Object obj,
                                 java.util.Hashtable local_vars,
                                 int statement_type)
This method is called each time a statement is executed by the interpreter, just before the statement is performed
Parameters:
location - the location of the script
line - the line the statement was on
obj - the object owning the current method
local_vars - the local variables for the current method
statement_type - an integer indicating the type of statement, a constant s_ value from the ParseNode class
Returns:
false to halt the execution of the current method

compoundStatementExecuted

public boolean compoundStatementExecuted(java.lang.String location,
                                         int line_num,
                                         java.lang.Object obj,
                                         java.util.Hashtable local_vars)
This method is called each time a compound statement is executed by the interpreter, just before the statement is performed
Parameters:
location - the location of the script
line - the line the statement was on
obj - the object owning the current method
local_vars - the local variables for the current method
Returns:
false to halt the execution of the current method