Field Summary |
|
final protected static String | EXPIRED Breakpoint attribute storing the expired value (value "org.eclipse.jdt.debug.core.expired" ).
This attribute is stored as a boolean . |
final protected static String | HIT_COUNT Breakpoint attribute storing a breakpoint's hit count value
(value "org.eclipse.jdt.debug.core.hitCount" ). |
final protected static String | INSTALL_COUNT Breakpoint attribute storing the number of debug targets a
breakpoint is installed in (value "org.eclipse.jdt.debug.core.installCount" ). |
final public static String | JAVA_BREAKPOINT_PROPERTY |
final protected static String | SUSPEND_POLICY Breakpoint attribute storing suspend policy code for
this breakpoint. |
final protected static String | TYPE_NAME Breakpoint attribute storing the fully qualified name of the type
this breakpoint is located in.
(value "org.eclipse.jdt.debug.core.typeName" ). |
protected Map | fFilteredThreadsByTarget The list of threads (ThreadReference objects) in which this breakpoint will suspend,
associated with the target in which each thread exists (JDIDebugTarget). |
protected Set | fInstalledTargets List of targets in which this breakpoint is installed. |
protected String | fInstalledTypeName Stores the type name that this breakpoint was last installed
in. |
protected List | fInstanceFilters List of active instance filters for this breakpoint
(list of IJavaObject ). |
protected HashMap | fRequestsByTarget Stores the collection of requests that this breakpoint has installed in
debug targets. |
final protected static IJavaObject[] | fgEmptyInstanceFilters Empty instance filters array. |
final protected static String[] | fgExpiredEnabledAttributes |
Method Summary |
|
abstract protected void | addInstanceFilter(EventRequest request, ObjectReference object) Adds an instance filter to the given request. |
public void | addInstanceFilter(IJavaObject object) |
public void | addToTarget(JDIDebugTarget target) Add this breakpoint to the given target. |
protected void | addToTargetForLocalType(JDIDebugTarget target, String enclosingTypeName) Local types (types defined in methods) are handled specially due to the
different types that the local type is associated with as well as the
performance problems of using ReferenceType#nestedTypes. |
protected void | cleanupForThreadTermination(JDIThread thread) Removes cached information relevant to this thread which has
terminated. |
protected void | configureInstanceFilters(EventRequest request, JDIDebugTarget target) |
protected void | configureRequest(EventRequest request, JDIDebugTarget target) Configure a breakpoint request with common properties:
JAVA_BREAKPOINT_PROPERTY
HIT_COUNT
EXPIRED
and sets the suspend policy of the request to suspend
the event thread. |
protected void | configureRequestHitCount(EventRequest request) |
protected void | configureRequestThreadFilter(EventRequest request, JDIDebugTarget target) Configure the thread filter property of the given request. |
protected boolean | createRequest(JDIDebugTarget target, ReferenceType type) Attempts to create a breakpoint request for this breakpoint in the given
reference type in the given target. |
protected void | createRequests(JDIDebugTarget target) |
protected void | decrementInstallCount() Decrements the install count of this breakpoint. |
protected void | deregisterRequest(EventRequest request, JDIDebugTarget target) Remove the given request from the given target. |
protected void | expireHitCount(Event event) Called when a breakpoint event is encountered. |
protected void | fireAdding(IJavaDebugTarget target) Notifies listeners this breakpoint is to be added to the
given target. |
protected void | fireChanged() Change notification when there are no marker changes. |
protected void | fireInstalled(IJavaDebugTarget target) Notifies listeners this breakpoint has been installed in the
given target. |
protected void | fireRemoved(IJavaDebugTarget target) Notifies listeners this breakpoint has been removed from the
given target. |
protected int | getDefaultSuspendPolicy() |
protected String | getEnclosingReferenceTypeName() Returns a String corresponding to the reference type
name to the top enclosing type in which this breakpoint
is located or null if no reference type could be
found. |
public int | getHitCount() |
public int | getInstallCount() Returns the INSTALL_COUNT attribute of this breakpoint
or 0 if the attribute is not set. |
public IJavaObject[] | getInstanceFilters() |
protected int | getJDISuspendPolicy() |
protected String | getMarkerMessage(int hitCount, int suspendPolicy) |
public String | getModelIdentifier() |
protected ArrayList | getRequests(JDIDebugTarget target) Returns the requests that this breakpoint has installed
in the given target. |
public int | getSuspendPolicy() |
public IJavaThread | getThreadFilter(IJavaDebugTarget target) |
public IJavaThread[] | getThreadFilters() |
public String | getTypeName() |
public boolean | handleBreakpointEvent(Event event, JDIDebugTarget target, JDIThread thread) |
public boolean | handleClassPrepareEvent(ClassPrepareEvent event, JDIDebugTarget target) Handle the given class prepare event, which was generated by the
class prepare event installed in the given target by this breakpoint. |
public void | handleDebugEvents(DebugEvent[] events) |
public boolean | handleEvent(Event event, JDIDebugTarget target) |
protected boolean | hasHitCountChanged(EventRequest request) Returns whether the hitCount of this breakpoint is equal to the hitCount of
the associated request. |
protected void | incrementInstallCount() |
protected boolean | installableReferenceType(ReferenceType type, JDIDebugTarget target) Returns whether the given reference type is appropriate for this
breakpoint to be installed in the given target. |
protected void | internalUpdateEnabledState(EventRequest request, boolean enabled, JDIDebugTarget target) Set the enabled state of the given request to the given
value, also taking into account instance filters. |
public boolean | isExpired() Returns whether this breakpoint has expired. |
protected boolean | isExpired(EventRequest request) |
public boolean | isInstalled() |
protected boolean | isInstalledIn(IJavaDebugTarget target) Returns whether this breakpoint is installed in the given target. |
abstract protected EventRequest[] | newRequests(JDIDebugTarget target, ReferenceType type) Creates, installs, and returns all event requests for this breakpoint
in the given reference type and and target. |
protected boolean | queryInstallListeners(JDIDebugTarget target, ReferenceType type) Returns whether this breakpoint should be installed in the given reference
type in the given target according to registered breakpoint listeners. |
protected void | recreate() An attribute of this breakpoint has changed - recreate event requests in
all targets. |
protected void | recreate(JDIDebugTarget target) Recreate this breakpoint in the given target, as long as the
target already contains this breakpoint. |
protected void | register(boolean register) Add this breakpoint to the breakpoint manager,
or sets it as unregistered. |
protected void | registerRequest(EventRequest request, JDIDebugTarget target) Add the given event request to the given debug target. |
public void | removeFromTarget(JDIDebugTarget target) Removes this breakpoint from the given target. |
public void | removeInstanceFilter(IJavaObject object) |
protected void | removeRequests(JDIDebugTarget target) Remove all requests that this breakpoint has installed in the given
debug target. |
public void | removeThreadFilter(IJavaDebugTarget javaTarget) |
public void | setEnabled(boolean enabled) |
public void | setExpired(boolean expired) Sets whether this breakpoint's hit count has expired. |
public void | setHitCount(int count) |
protected void | setInstalledIn(IJavaDebugTarget target, boolean installed) |
public void | setMarker(IMarker marker) |
abstract protected void | setRequestThreadFilter(EventRequest request, ThreadReference thread) EventRequest does not support thread filters, so they
can't be set generically here. |
public void | setSuspendPolicy(int suspendPolicy) |
public void | setThreadFilter(IJavaThread thread) |
protected void | setTypeName(String typeName) Sets the type name in which to install this breakpoint. |
public boolean | shouldSkipBreakpoint() Returns whether this breakpoint should be "skipped". |
public boolean | supportsInstanceFilters() |
public boolean | supportsThreadFilters() |
protected boolean | suspend(JDIThread thread) Delegates to the given thread to suspend, and
returns whether the thread suspended
It is possible that the thread will not suspend
as directed by a Java breakpoint listener. |
protected void | updateEnabledState(EventRequest request, JDIDebugTarget target) Update the enabled state of the given request in the given target, which is associated
with this breakpoint. |
public void | wonSuspendVote(Event event, JDIDebugTarget target) |