|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.bluemarsh.jswat.breakpoint.DefaultBreakpoint
Defines the default breakpoint class. This class implements most of the default behavior for all breakpoints.
Field Summary | |
protected BreakpointGroup |
breakpointGroup
Breakpoint group that contains us (always non-null). |
protected java.util.List |
conditionList
List of conditions this breakpoint depends on. |
protected boolean |
deleteOnExpire
True if the breakpoint should be deleted on expiration. |
protected int |
expireCount
Number of times this breakpoint can be hit before it expires. |
protected boolean |
isEnabled
True if this breakpoint is enabled. |
protected java.util.List |
monitorList
List of monitors this breakpoint executes when it stops. |
protected java.util.Hashtable |
propertyList
Table of named properties stored in this breakpoint. |
protected int |
skipCount
Number of times this breakpoint will be hit before it stops. |
protected int |
stoppedCount
Number of times this breakpoint has stopped. |
protected int |
suspendPolicy
The thread suspension policy for this request. |
Fields inherited from interface com.bluemarsh.jswat.breakpoint.Breakpoint |
serialVersionUID |
Constructor Summary | |
DefaultBreakpoint()
Creates a DefaultBreakpoint with the default parameters. |
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. |
protected void |
fireChange()
Notify breakpoint listeners that this breakpoint has changed. |
BreakpointGroup |
getBreakpointGroup()
Gets the breakpoint group to which this breakpoint belongs. |
protected BreakpointManager |
getBreakpointManager()
Acquires the breakpoint manager instance. |
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. |
abstract 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. |
protected void |
incrementStoppedCount()
Increments the stoppedCount value and sends out
notifications that the breakpoint has been modified. |
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. |
abstract 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. |
protected void |
performStop(com.sun.jdi.event.Event e)
This breakpoint has caused the debuggee VM to stop. |
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. |
protected boolean |
shouldResume(com.sun.jdi.event.Event event)
Determines if this breakpoint is to halt execution. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface com.bluemarsh.jswat.breakpoint.Breakpoint |
toString |
Field Detail |
protected int suspendPolicy
com.sun.jdi.request.EventRequest
suspend constants.
Defaults to SUSPEND_ALL
.protected boolean isEnabled
protected BreakpointGroup breakpointGroup
protected int stoppedCount
protected int expireCount
protected int skipCount
protected java.util.List conditionList
protected java.util.List monitorList
protected java.util.Hashtable propertyList
protected boolean deleteOnExpire
Constructor Detail |
public DefaultBreakpoint()
Method Detail |
public void addCondition(Condition condition)
shouldStop()
method is called, this breakpoint
should check if this condition is satisfied or not.addCondition
in interface Breakpoint
condition
- condition for this breakpoint to stop.public void addMonitor(Monitor monitor)
stopped()
method is called, this breakpoint
will execute this monitor.addMonitor
in interface Breakpoint
monitor
- monitor for this breakpoint to execute.public java.util.ListIterator conditions()
conditions
in interface Breakpoint
Condition
objects.public void deleteOnExpire()
deleteOnExpire
in interface Breakpoint
public void destroy()
destroy
in interface Breakpoint
public com.sun.jdi.request.EventRequest eventRequest()
eventRequest
in interface Breakpoint
protected void fireChange()
public BreakpointGroup getBreakpointGroup()
getBreakpointGroup
in interface Breakpoint
setBreakpointGroup(com.bluemarsh.jswat.breakpoint.BreakpointGroup)
protected BreakpointManager getBreakpointManager()
public int getExpireCount()
getExpireCount
in interface Breakpoint
public java.lang.Object getProperty(java.lang.String key)
getProperty
in interface Breakpoint
key
- name of property to retrieve.public int getSkipCount()
getSkipCount
in interface Breakpoint
public int getSuspendPolicy()
com.sun.jdi.request.EventRequest
constants for suspending threads.getSuspendPolicy
in interface Breakpoint
setSuspendPolicy(int)
public abstract BreakpointUI getUIAdapter()
getUIAdapter
in interface Breakpoint
public boolean hasExpired()
hasExpired
in interface Breakpoint
protected void incrementStoppedCount()
stoppedCount
value and sends out
notifications that the breakpoint has been modified. This is
important for breakpoint listeners so they will notice if the
breakpoint stops skipping or starts being expired.public void init()
init
in interface Breakpoint
public boolean isEnabled()
isEnabled
in interface Breakpoint
setEnabled(boolean)
public abstract boolean isResolved()
isResolved
in interface Breakpoint
public boolean isSkipping()
isSkipping
in interface Breakpoint
public java.util.ListIterator monitors()
monitors
in interface Breakpoint
Monitor
objects.protected void performStop(com.sun.jdi.event.Event e)
e
- Event for which we are stopping.public void removeCondition(Condition condition)
removeCondition
in interface Breakpoint
condition
- condition to remove from this breakpoint.public void removeMonitor(Monitor monitor)
removeMonitor
in interface Breakpoint
monitor
- monitor to remove from this breakpoint.public void reset()
reset
in interface Breakpoint
public void setBreakpointGroup(BreakpointGroup group)
setBreakpointGroup
in interface Breakpoint
group
- new parent breakpoint group.getBreakpointGroup()
public void setEnabled(boolean enabled)
setEnabled
in interface Breakpoint
enabled
- true if breakpoint should be enabled, false
if breakpoint should be disabled.isEnabled
public void setExpireCount(int expireCount)
setExpireCount
in interface Breakpoint
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)
setProperty
in interface Breakpoint
key
- name of property to set.value
- value of property.public void setSkipCount(int skipCount)
skipCount
times before it stops.setSkipCount
in interface Breakpoint
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.setSuspendPolicy
in interface Breakpoint
policy
- one of the EventRequest suspend constants.getSuspendPolicy()
protected boolean shouldResume(com.sun.jdi.event.Event event)
event
- JDI Event that brought us here.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |