randoop
Interface ExecutionVisitor

All Known Implementing Classes:
ContractCheckingVisitor, CovWitnessHelperVisitor, DummyVisitor, MultiVisitor, RegressionCaptureVisitor, ReplayVisitor

public interface ExecutionVisitor

A visitor that is invoked as the execution of a sequence unfolds. Typically such a visitor adds decorations to the sequence based on checks of the runtime behavior. IMPORTANT: Implementing classes should have a zero-argument constructor.


Method Summary
Modifier and Type Method and Description
 void initialize(ExecutableSequence executableSequence)
          Called before execution of a sequence, to allow the visitor to perform any initialization steps required before execution.
 void visitAfter(ExecutableSequence sequence, int i)
          Invoked by ExecutableSequence.execute after the i-th statement executes.
 void visitBefore(ExecutableSequence sequence, int i)
          Invoked by ExecutableSequence.execute before the i-th statement executes.
 

Method Detail

visitBefore

void visitBefore(ExecutableSequence sequence,
                 int i)
Invoked by ExecutableSequence.execute before the i-th statement executes. Precondition: statements 0..i-1 have been executed.


visitAfter

void visitAfter(ExecutableSequence sequence,
                int i)
Invoked by ExecutableSequence.execute after the i-th statement executes. Precondition: statements 0..i have been executed.


initialize

void initialize(ExecutableSequence executableSequence)
Called before execution of a sequence, to allow the visitor to perform any initialization steps required before execution.

Parameters:
executableSequence -