public class ObjectTracker extends PropertyListenerAdapter
| Constructor and Description |
|---|
ObjectTracker(Config conf,
JPF jpf) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
check(Search search,
VM vm)
return true if property is NOT violated
|
String |
getErrorMessage() |
void |
instructionExecuted(VM vm,
ThreadInfo ti,
Instruction nextInsn,
Instruction executedInsn)
VM has executed the next instruction
(can be used to analyze branches, monitor PUTFIELD / GETFIELD and
INVOKExx / RETURN instructions)
|
void |
objectCreated(VM vm,
ThreadInfo ti,
ElementInfo ei)
new object was created
|
void |
objectReleased(VM vm,
ThreadInfo ti,
ElementInfo ei)
object was garbage collected (after potential finalization)
|
void |
reset() |
choiceGeneratorAdvanced, choiceGeneratorProcessed, choiceGeneratorRegistered, choiceGeneratorSet, classLoaded, exceptionBailout, exceptionHandled, exceptionThrown, executeInstruction, gcBegin, gcEnd, loadClass, methodEntered, methodExited, objectLocked, objectNotify, objectNotifyAll, objectUnlocked, objectWait, propertyViolated, publishConstraintHit, publishFinished, publishPropertyViolation, publishStart, publishTransition, searchConstraintHit, searchFinished, searchStarted, stateAdvanced, stateBacktracked, stateProcessed, statePurged, stateRestored, stateStored, threadBlocked, threadInterrupted, threadNotified, threadScheduled, threadStarted, threadTerminated, threadWaiting, vmInitializedgetExplanation, printOnpublic boolean check(Search search, VM vm)
Propertycheck in interface Propertycheck in class PropertyListenerAdapterpublic void reset()
reset in interface Propertyreset in class PropertyListenerAdapterpublic String getErrorMessage()
getErrorMessage in interface PropertygetErrorMessage in class GenericPropertypublic void objectCreated(VM vm, ThreadInfo ti, ElementInfo ei)
VMListenerobjectCreated in interface VMListenerobjectCreated in class PropertyListenerAdapterpublic void objectReleased(VM vm, ThreadInfo ti, ElementInfo ei)
VMListenerobjectReleased in interface VMListenerobjectReleased in class PropertyListenerAdapterpublic void instructionExecuted(VM vm, ThreadInfo ti, Instruction nextInsn, Instruction executedInsn)
VMListenerinstructionExecuted in interface VMListenerinstructionExecuted in class PropertyListenerAdapter