|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Interface Breakpoint defines the methods applicable to a breakpoint. Breakpoints have several states, including enabled, disabled, expired, and resolved. Breakpoints have several optional elements. First they have a "skip" count, which tells the breakpoint not to stop until it has been hit a certain number of times. Then breakpoints may expire after a number of hits, in which case they will no longer stop.
All concrete breakpoint implementations should set a "breakpoint"
property in their com.sun.jdi.request.EventRequest
object. This is used by the breakpoint manager to retrieve the
breakpoint object from the event request object.
Field Summary | |
static long |
serialVersionUID
serial version |
Method Summary | |
void |
addCondition(Condition condition)
Add the given condition to this breakpoint. |
void |
addMonitor(Monitor monitor)
Add the given monitor to this breakpoint. |
java.util.ListIterator |
conditions()
Returns an iterator of the conditions associated with this breakpoint. |
void |
deleteOnExpire()
Ensures that this breakpoint will be deleted when it has expired. |
void |
destroy()
Tear down this breakpoint in preparation for deletion. |
com.sun.jdi.request.EventRequest |
eventRequest()
Returns the event request for this breakpoint, if the breakpoint has been resolved. |
BreakpointGroup |
getBreakpointGroup()
Gets the breakpoint group to which this breakpoint belongs. |
int |
getExpireCount()
Return the number of times this breakpoint can be hit before it expires and no longer stops. |
java.lang.Object |
getProperty(java.lang.String key)
Retrieves the named property. |
int |
getSkipCount()
Return the number of times this breakpoint can be hit before it starts stopping the debuggee VM. |
int |
getSuspendPolicy()
Retrieve the suspend policy for this breakpoint. |
BreakpointUI |
getUIAdapter()
Returns the user interface widget for customizing this breakpoint. |
boolean |
hasExpired()
Returns true if the breakpoint has expired and will no longer cause execution to halt. |
void |
init()
Initialize the breakpoint so it may operate normally. |
boolean |
isEnabled()
Returns true if and only if the breakpoint is enabled and the group containing this breakpoint is also enabled. |
boolean |
isResolved()
Returns true if the breakpoint has been resolved against the intended object in the debuggee VM. |
boolean |
isSkipping()
Returns true if this breakpoint is currently skipping. |
java.util.ListIterator |
monitors()
Returns an iterator of the monitors associated with this breakpoint. |
void |
removeCondition(Condition condition)
Remove the given condition from this breakpoint. |
void |
removeMonitor(Monitor monitor)
Remove the given monitor from this breakpoint. |
void |
reset()
Reset the stopped count to zero and clear any other attributes such that this breakpoint can be used again for a new session. |
void |
setBreakpointGroup(BreakpointGroup group)
Sets the breakpoint group to which this breakpoint will belong. |
void |
setEnabled(boolean enabled)
Enables or disables this breakpoint, according to the parameter. |
void |
setExpireCount(int expireCount)
Set the number of times this breakpoint can be hit before it expires and no longer stops. |
void |
setProperty(java.lang.String key,
java.lang.Object value)
Stores a named property in this breakpoint. |
void |
setSkipCount(int skipCount)
Set the number of times this breakpoint can be hit before it starts stopping the debuggee VM. |
void |
setSuspendPolicy(int policy)
Set the suspend policy for the request. |
java.lang.String |
toString(boolean terse)
Returns a String representation of this. |
Field Detail |
public static final long serialVersionUID
Method Detail |
public void addCondition(Condition condition)
shouldStop()
method is called, this breakpoint
should check if this condition is satisfied or not.condition
- condition for this breakpoint to stop.public void addMonitor(Monitor monitor)
stopped()
method is called, this breakpoint
will execute this monitor.monitor
- monitor for this breakpoint to execute.public java.util.ListIterator conditions()
Condition
objects.public void deleteOnExpire()
public void destroy()
public com.sun.jdi.request.EventRequest eventRequest()
public BreakpointGroup getBreakpointGroup()
setBreakpointGroup(com.bluemarsh.jswat.breakpoint.BreakpointGroup)
public int getExpireCount()
public java.lang.Object getProperty(java.lang.String key)
key
- name of property to retrieve.public int getSkipCount()
public int getSuspendPolicy()
com.sun.jdi.request.EventRequest
constants for suspending threads.setSuspendPolicy(int)
public BreakpointUI getUIAdapter()
public boolean hasExpired()
public void init()
public boolean isEnabled()
setEnabled(boolean)
public boolean isResolved()
public boolean isSkipping()
public java.util.ListIterator monitors()
Monitor
objects.public void removeCondition(Condition condition)
condition
- condition to remove from this breakpoint.public void removeMonitor(Monitor monitor)
monitor
- monitor to remove from this breakpoint.public void reset()
public void setBreakpointGroup(BreakpointGroup group)
group
- new parent breakpoint group.getBreakpointGroup()
public void setEnabled(boolean enabled)
enabled
- True if breakpoint should be enabled, false
if breakpoint should be disabled.isEnabled()
public void setExpireCount(int expireCount)
expireCount
- number of times this breakpoint can be hit
before it expires; zero to never expirepublic void setProperty(java.lang.String key, java.lang.Object value)
key
- name of property to set.value
- value of property.public void setSkipCount(int skipCount)
skipCount
times before it stops.skipCount
- number of times this breakpoint will be hit
before it stops; zero to disable skippingpublic void setSuspendPolicy(int policy)
com.sun.jdi.request.EventRequest
constants
for suspending threads.policy
- one of the EventRequest suspend constants.public java.lang.String toString(boolean terse)
terse
- true to keep the description terse.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |