simkin
Interface StatementStepper


public interface StatementStepper

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


Method Summary
 void breakpoint(StackFrame frame)
          This method is called if the interpreter encounters a breakpoint command.
 boolean compoundStatementExecuted(StackFrame frame)
          This method is called each time a compound statement is executed by the interpreter, just before the statement is performed
 boolean exceptionEncountered(StackFrame frame, java.lang.Exception e, java.lang.String desc)
          This method is called if an exception is encountered while executing a script.
 boolean statementExecuted(StackFrame frame, 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(StackFrame frame,
                                 int statement_type)
This method is called each time a statement is executed by the interpreter, just before the statement is performed

Parameters:
frame - the current stack frame
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(StackFrame frame)
This method is called each time a compound statement is executed by the interpreter, just before the statement is performed

Parameters:
frame - the current stack frame
Returns:
false to halt the execution of the current method

exceptionEncountered

public boolean exceptionEncountered(StackFrame frame,
                                    java.lang.Exception e,
                                    java.lang.String desc)
This method is called if an exception is encountered while executing a script.

Parameters:
frame - the current stack frame
e - the exception that has occurred
desc - the exception description without location information
Returns:
true to throw the exception, false to ignore and continue

breakpoint

public void breakpoint(StackFrame frame)
This method is called if the interpreter encounters a breakpoint command.

Parameters:
frame - the current stack frame