frysk.proc
Class TestBreakpoints.InstructionObserver
java.lang.Object
frysk.proc.TestBreakpoints.InstructionObserver
- All Implemented Interfaces:
- Observer, TaskObserver, TaskObserver.Instruction
- Enclosing class:
- TestBreakpoints
private static class TestBreakpoints.InstructionObserver
- extends Object
- implements TaskObserver.Instruction
Method Summary |
void |
addedTo(Object o)
Acknowledge the request to add this Observer from Object's set
of observers was successful. |
void |
addFailed(Object o,
Throwable w)
Notify that the attempt to add to the specified observer failed. |
void |
deletedFrom(Object o)
Acknowledge the request to delete this Observer from Object's
set of observers was successful (or that the Observer was
spontaneously deleted, e.g., due to a task exit). |
int |
getAddrHit()
|
Action |
updateExecuted(Task task)
The task has started executing or has executed another
instruction. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
added
boolean added
deleted
boolean deleted
task
private final Task task
addr
private final long addr
addr_hit
private int addr_hit
TestBreakpoints.InstructionObserver
TestBreakpoints.InstructionObserver(Task task,
long addr)
addedTo
public void addedTo(Object o)
- Description copied from interface:
Observer
- Acknowledge the request to add this Observer from Object's set
of observers was successful.
- Specified by:
addedTo
in interface Observer
deletedFrom
public void deletedFrom(Object o)
- Description copied from interface:
Observer
- Acknowledge the request to delete this Observer from Object's
set of observers was successful (or that the Observer was
spontaneously deleted, e.g., due to a task exit).
- Specified by:
deletedFrom
in interface Observer
addFailed
public void addFailed(Object o,
Throwable w)
- Description copied from interface:
Observer
- Notify that the attempt to add to the specified observer failed.
- Specified by:
addFailed
in interface Observer
updateExecuted
public Action updateExecuted(Task task)
- Description copied from interface:
TaskObserver.Instruction
- The task has started executing or has executed another
instruction. Return Action.BLOCK to block the task's
further execution. When Action.CONTINUE is returned
this method will be called as soon as one instruction
has been executed.
- Specified by:
updateExecuted
in interface TaskObserver.Instruction
getAddrHit
public int getAddrHit()