|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.bluemarsh.jswat.breakpoint.DefaultBreakpoint | +--com.bluemarsh.jswat.breakpoint.TraceBreakpoint
Class TraceBreakpoint implements the Breakpoint interface. It shows each time any method is entered or exited during the execution of the debuggee program.
Field Summary | |
protected com.sun.jdi.request.MethodEntryRequest |
entryRequest
Method entry event request. |
protected com.sun.jdi.request.MethodExitRequest |
exitRequest
Method exit event request. |
Fields inherited from class com.bluemarsh.jswat.breakpoint.DefaultBreakpoint |
breakpointGroup, classFilters, conditionList, deleteOnExpire, expireCount, isEnabled, logCategory, monitorList, propertyList, skipCount, stoppedCount, suspendPolicy, threadFilters |
Fields inherited from interface com.bluemarsh.jswat.breakpoint.Breakpoint |
serialVersionUID |
Fields inherited from interface com.bluemarsh.jswat.event.VMEventListener |
PRIORITY_BREAKPOINT, PRIORITY_DEFAULT, PRIORITY_HIGH, PRIORITY_HIGHEST, PRIORITY_LOW, PRIORITY_LOWEST, PRIORITY_SESSION |
Constructor Summary | |
TraceBreakpoint(java.lang.String classes,
java.lang.String threads)
Creates a TraceBreakpoint event with the given class and thread filters. |
Method Summary | |
void |
activate(Session session)
Called when the Session is about to begin an active debugging session. |
void |
close(Session session)
Called when the Session is about to close down. |
protected void |
createRequests()
Create the method entry and exit event requests. |
void |
deactivate(Session session)
Called when the Session is about to end an active debugging session. |
protected void |
deleteRequests()
Delete the method entry and exit event requests. |
void |
destroy()
Tear down this breakpoint in preparation for deletion. |
BreakpointUI |
getUIAdapter()
Returns the user interface widget for customizing this breakpoint. |
void |
init()
Initialize the breakpoint so it may operate normally. |
void |
init(Session session)
Called after the Session has added this listener to the Session listener list. |
boolean |
isResolved()
Returns true if the breakpoint has been resolved against the intended object in the debuggee VM. |
protected boolean |
performStop(com.sun.jdi.event.Event e)
This breakpoint has caused the debuggee VM to stop. |
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 |
setEnabled(boolean enabled)
Enables or disables this breakpoint, according to the parameter. |
void |
setSuspendPolicy(int policy)
Set the suspend policy for the request. |
protected java.lang.String |
showEventLocation(com.sun.jdi.event.LocatableEvent le)
Return a String describing the location of the given event. |
java.lang.String |
toString()
Returns a String representation of this. |
java.lang.String |
toString(boolean terse)
Returns a String representation of this. |
Methods inherited from class com.bluemarsh.jswat.breakpoint.DefaultBreakpoint |
addCondition, addMonitor, conditions, deleteOnExpire, eventOccurred, eventRequest, fireChange, getBreakpointGroup, getBreakpointManager, getClassFilters, getExpireCount, getProperty, getSkipCount, getSuspendPolicy, getThreadFilters, hasExpired, incrementStoppedCount, isEnabled, isSkipping, monitors, removeCondition, removeMonitor, setBreakpointGroup, setClassFilters, setExpireCount, setProperty, setSkipCount, setThreadFilters, shouldResume |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
protected transient com.sun.jdi.request.MethodEntryRequest entryRequest
protected transient com.sun.jdi.request.MethodExitRequest exitRequest
Constructor Detail |
public TraceBreakpoint(java.lang.String classes, java.lang.String threads)
classes
- comma-separated list of class filters,
or null if none are given.threads
- comma-separated list of thread filters,
or null if none are given.Method Detail |
public void activate(Session session)
activate
in interface SessionListener
session
- Session being activated.public void close(Session session)
close
in interface SessionListener
session
- Session being closed.protected void createRequests()
public void deactivate(Session session)
deactivate
in interface SessionListener
session
- Session being deactivated.protected void deleteRequests()
public void destroy()
destroy
in class DefaultBreakpoint
public BreakpointUI getUIAdapter()
getUIAdapter
in class DefaultBreakpoint
public void init()
init
in class DefaultBreakpoint
public void init(Session session)
init
in interface SessionListener
session
- Session adding this listener.public boolean isResolved()
isResolved
in class DefaultBreakpoint
protected boolean performStop(com.sun.jdi.event.Event e)
performStop
in class DefaultBreakpoint
e
- Event for which we are stopping.public void reset()
reset
in class DefaultBreakpoint
public void setEnabled(boolean enabled)
setEnabled
in class DefaultBreakpoint
enabled
- true if breakpoint should be enabled, false
if breakpoint should be disabled.DefaultBreakpoint.isEnabled
public void setSuspendPolicy(int policy)
com.sun.jdi.request.EventRequest
constants
for suspending threads. The breakpoint must be disabled
before calling this method.setSuspendPolicy
in class DefaultBreakpoint
policy
- one of the EventRequest suspend constants.protected java.lang.String showEventLocation(com.sun.jdi.event.LocatableEvent le)
le
- locatable event.public java.lang.String toString()
toString
in class java.lang.Object
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 |