|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface BlockEventListener
A basic block event listener is notified by an event dispatcher each time a basic block is executed.
Method Summary | |
---|---|
void |
callBlockExecuteEvent(java.lang.String classAndSignature,
int id)
Notification that a call block was executed. |
void |
codeBlockExecuteEvent(java.lang.String classAndSignature,
int id)
Notification that a general basic block was executed. |
void |
commitEventStream(int streamId)
Notification that a basic block event stream has completed. |
void |
entryBlockExecuteEvent(java.lang.String classAndSignature,
int id)
Notification that an entry block was executed. |
void |
exitBlockExecuteEvent(java.lang.String classAndSignature,
int id)
Notification that an exit block was executed. |
void |
initialize()
Initializes the event listener. |
void |
methodEnterEvent(java.lang.String classAndSignature,
int blockCount)
Notification that a new method has been entered. |
void |
newEventStream(int streamId)
Notification that a new basic block event stream is starting. |
void |
returnBlockExecuteEvent(java.lang.String classAndSignature,
int id)
Notification that a return block was executed. |
Method Detail |
---|
void initialize()
Initializes the event listener. Listeners that need to perform configuration or setup of state that will persist across multiple event streams should implement this method.
This method is called automatically by a
JUnitEventDispatcher
prior to beginning
execution of test cases. It is the responsibility of the applications
using other event dispatchers to call this method at the appropriate
time.
void newEventStream(int streamId)
Notification that a new basic block event stream is starting.
streamId
- Identifier associated with the event stream, such as
a test case number.void commitEventStream(int streamId)
Notification that a basic block event stream has completed.
streamId
- Identifier associated with the finished event stream,
such as a test case number.void methodEnterEvent(java.lang.String classAndSignature, int blockCount)
Notification that a new method has been entered.
This method provides the listener an opportunity to perform some action before beginning processing of basic block events in a new method, such as setting up data structures.
classAndSignature
- Concatenation of the fully qualified class
name, method name, and JNI signature of the method entered.blockCount
- The number of basic blocks in the method.void codeBlockExecuteEvent(java.lang.String classAndSignature, int id)
Notification that a general basic block was executed.
classAndSignature
- Concatenation of the fully qualified class
name, method name, and JNI signature of the method in which the
basic block was executed.id
- Identifier of the basic block that was executed. Correlates
to the basic block identifiers reported in a
CFG
.void callBlockExecuteEvent(java.lang.String classAndSignature, int id)
Notification that a call block was executed.
classAndSignature
- Concatenation of the fully qualified class
name, method name, and JNI signature of the method in which the
basic block was executed.id
- Identifier of the basic block that was executed. Correlates
to the basic block identifiers reported in a
CFG
.void returnBlockExecuteEvent(java.lang.String classAndSignature, int id)
Notification that a return block was executed.
A return block is a virtual block that does not correlate to any code in the executing program. It serves only as a marker that execution has returned to a caller following execution of a call block.
classAndSignature
- Concatenation of the fully qualified class
name, method name, and JNI signature of the method in which the
basic block was executed.id
- Identifier of the basic block that was executed. Correlates
to the basic block identifiers reported in a
CFG
.void entryBlockExecuteEvent(java.lang.String classAndSignature, int id)
Notification that an entry block was executed.
An entry block is a virtual block that does not correlate to any code in the executing program. It serves only as a marker that execution has entered a new method.
classAndSignature
- Concatenation of the fully qualified class
name, method name, and JNI signature of the method in which the
basic block was executed.id
- Identifier of the basic block that was executed. Correlates
to the basic block identifiers reported in a
CFG
.void exitBlockExecuteEvent(java.lang.String classAndSignature, int id)
Notification that an exit block was executed.
An exit block is a virtual block that does not correlate to any code in the executing program. It serves only as a marker that execution has exited a method.
There is only one normal exit block in a method, but there may be multiple exceptional exit blocks in a method.
classAndSignature
- Concatenation of the fully qualified class
name, method name, and JNI signature of the method in which the
basic block was executed.id
- Identifier of the basic block that was executed. Correlates
to the basic block identifiers reported in a
CFG
.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |