public interface ExecutionVisitor
IMPORTANT: Implementing classes should have a default constructor.
Modifier and Type | Method and Description |
---|---|
void |
initialize(ExecutableSequence eseq)
Called before execution of a sequence, to allow the visitor to perform any initialization steps
required before execution.
|
void |
visitAfterSequence(ExecutableSequence eseq)
Called after execution of a sequence.
|
void |
visitAfterStatement(ExecutableSequence eseq,
int i)
Invoked by ExecutableSequence.execute after the i-th statement executes.
|
void |
visitBeforeStatement(ExecutableSequence eseq,
int i)
Invoked by ExecutableSequence.execute before the i-th statement executes.
|
void visitBeforeStatement(ExecutableSequence eseq, int i)
Precondition: statements 0..i-1 have been executed.
eseq
- the code sequence to be visitedi
- the position of statement to visitvoid visitAfterStatement(ExecutableSequence eseq, int i)
Precondition: statements 0..i have been executed.
eseq
- the code sequence to be visitedi
- the position of statement to visitvoid initialize(ExecutableSequence eseq)
eseq
- the code sequence to be visitedvoid visitAfterSequence(ExecutableSequence eseq)
eseq
- the visited code sequence