| org.eclipse.jdt.internal.debug.core.breakpoints.JavaBreakpoint org.eclipse.jdt.internal.debug.core.breakpoints.JavaLineBreakpoint
All known Subclasses: org.eclipse.jdt.internal.debug.core.breakpoints.JavaWatchpoint, org.eclipse.jdt.internal.debug.core.breakpoints.JavaTargetPatternBreakpoint, org.eclipse.jdt.internal.debug.core.breakpoints.JavaStratumLineBreakpoint, org.eclipse.jdt.internal.debug.core.breakpoints.JavaMethodEntryBreakpoint, org.eclipse.jdt.internal.debug.core.breakpoints.JavaMethodBreakpoint, org.eclipse.jdt.internal.debug.core.breakpoints.JavaPatternBreakpoint,
Field Summary | |
final protected static String | CONDITION Breakpoint attribute storing a breakpoint's conditional expression
(value "org.eclipse.jdt.debug.core.condition" ). | final protected static String | CONDITION_ENABLED Breakpoint attribute storing a breakpoint's condition enablement
(value "org.eclipse.jdt.debug.core.conditionEnabled" ). | final protected static String | CONDITION_SUSPEND_ON_TRUE Breakpoint attribute storing a breakpoint's condition suspend policy
(value " org.eclipse.jdt.debug.core.conditionSuspendOnTrue"
). | final public static int | NO_LINE_NUMBERS Status code indicating that a request to create a breakpoint in a type
with no line number attributes has occurred. | final protected static String | SOURCE_NAME Breakpoint attribute storing a breakpoint's source file name (debug attribute)
(value "org.eclipse.jdt.debug.core.sourceName" ). |
Constructor Summary | |
public | JavaLineBreakpoint() | public | JavaLineBreakpoint(IResource resource, String typeName, int lineNumber, int charStart, int charEnd, int hitCount, boolean add, Map attributes) | protected | JavaLineBreakpoint(IResource resource, String typeName, int lineNumber, int charStart, int charEnd, int hitCount, boolean add, Map attributes, String markerType) |
Method Summary | |
protected void | addInstanceFilter(EventRequest request, ObjectReference object) | public void | addLineBreakpointAttributes(Map attributes, String modelIdentifier, boolean enabled, int lineNumber, int charStart, int charEnd) Adds the standard attributes of a line breakpoint to
the given attribute map. | public void | addToTarget(JDIDebugTarget target) | public void | addTypeNameAndHitCount(Map attributes, String typeName, int hitCount) Adds type name and hit count attributes to the given
map. | protected void | cleanupForThreadTermination(JDIThread thread) | protected void | clearCachedExpressionFor(JDIDebugTarget target) Removes all compiled expressions which are currently
being cached for threads in the given target. | protected void | clearCachedSuspendEvents(JDIDebugTarget target) Removes all suspend events which are currently
being cached for threads in the given target. | public boolean | conditionHasErrors(ICompiledExpression expression) | protected BreakpointRequest | createLineBreakpointRequest(Location location, JDIDebugTarget target) Creates, installs, and returns a line breakpoint request at
the given location for this breakpoint. | protected List | determineLocations(int lineNumber, ReferenceType type, JDIDebugTarget target) Returns a list of locations of the given line number in the given type. | public int | getCharEnd() | public int | getCharStart() | public String | getCondition() | public IAstEvaluationEngine | getEvaluationEngine(IJavaDebugTarget vm, IJavaProject project) Returns an evaluation engine for evaluating this breakpoint's condition
in the given target and project context. | public int | getLineNumber() | protected String | getMarkerMessage(boolean conditionEnabled, String condition, int hitCount, int suspendPolicy, int lineNumber) | public static String | getMarkerType() | public boolean | handleBreakpointEvent(Event event, JDIDebugTarget target, JDIThread thread) | protected boolean | handleConditionalBreakpointEvent(Event event, JDIThread thread, JDIDebugTarget target) Returns whether this breakpoint should resume based on the
value of its condition. | protected boolean | hasCondition() | public boolean | isConditionEnabled() | public boolean | isConditionSuspendOnTrue() | protected EventRequest[] | newRequests(JDIDebugTarget target, ReferenceType type) | public void | removeFromTarget(JDIDebugTarget target) | public void | setCondition(String condition) | public void | setConditionEnabled(boolean conditionEnabled) | public void | setConditionSuspendOnTrue(boolean suspendOnTrue) | protected void | setRequestThreadFilter(EventRequest request, ThreadReference thread) | public boolean | supportsCondition() | protected boolean | suspendForCondition(Event event, JDIThread thread) Suspends the given thread for the given breakpoint event after
a conditional expression evaluation. | protected boolean | suspendForEvent(Event event, JDIThread thread) Suspends the given thread for the given breakpoint event. |
CONDITION | final protected static String CONDITION(Code) | | Breakpoint attribute storing a breakpoint's conditional expression
(value "org.eclipse.jdt.debug.core.condition" ). This attribute is stored as a
String .
|
CONDITION_ENABLED | final protected static String CONDITION_ENABLED(Code) | | Breakpoint attribute storing a breakpoint's condition enablement
(value "org.eclipse.jdt.debug.core.conditionEnabled" ). This attribute is stored as an
boolean .
|
CONDITION_SUSPEND_ON_TRUE | final protected static String CONDITION_SUSPEND_ON_TRUE(Code) | | Breakpoint attribute storing a breakpoint's condition suspend policy
(value " org.eclipse.jdt.debug.core.conditionSuspendOnTrue"
). This attribute is stored as an boolean .
|
NO_LINE_NUMBERS | final public static int NO_LINE_NUMBERS(Code) | | Status code indicating that a request to create a breakpoint in a type
with no line number attributes has occurred.
|
SOURCE_NAME | final protected static String SOURCE_NAME(Code) | | Breakpoint attribute storing a breakpoint's source file name (debug attribute)
(value "org.eclipse.jdt.debug.core.sourceName" ). This attribute is stored as
a String .
|
JavaLineBreakpoint | public JavaLineBreakpoint()(Code) | | |
JavaLineBreakpoint | protected JavaLineBreakpoint(IResource resource, String typeName, int lineNumber, int charStart, int charEnd, int hitCount, boolean add, Map attributes, String markerType) throws DebugException(Code) | | |
addLineBreakpointAttributes | public void addLineBreakpointAttributes(Map attributes, String modelIdentifier, boolean enabled, int lineNumber, int charStart, int charEnd)(Code) | | Adds the standard attributes of a line breakpoint to
the given attribute map.
The standard attributes are:
- IBreakpoint.ID
- IBreakpoint.ENABLED
- IMarker.LINE_NUMBER
- IMarker.CHAR_START
- IMarker.CHAR_END
|
addTypeNameAndHitCount | public void addTypeNameAndHitCount(Map attributes, String typeName, int hitCount)(Code) | | Adds type name and hit count attributes to the given
map.
If hitCount > 0 , adds the HIT_COUNT attribute
to the given breakpoint, and resets the EXPIRED attribute
to false (since, if the hit count is changed, the breakpoint should no
longer be expired).
|
cleanupForThreadTermination | protected void cleanupForThreadTermination(JDIThread thread)(Code) | | |
clearCachedExpressionFor | protected void clearCachedExpressionFor(JDIDebugTarget target)(Code) | | Removes all compiled expressions which are currently
being cached for threads in the given target.
|
clearCachedSuspendEvents | protected void clearCachedSuspendEvents(JDIDebugTarget target)(Code) | | Removes all suspend events which are currently
being cached for threads in the given target.
|
conditionHasErrors | public boolean conditionHasErrors(ICompiledExpression expression)(Code) | | Returns whether the cached conditional expression has errors or
false if there is no cached expression
|
createLineBreakpointRequest | protected BreakpointRequest createLineBreakpointRequest(Location location, JDIDebugTarget target) throws CoreException(Code) | | Creates, installs, and returns a line breakpoint request at
the given location for this breakpoint.
|
determineLocations | protected List determineLocations(int lineNumber, ReferenceType type, JDIDebugTarget target)(Code) | | Returns a list of locations of the given line number in the given type.
Returns null if locations cannot be determined.
|
getCharEnd | public int getCharEnd() throws CoreException(Code) | | |
getCharStart | public int getCharStart() throws CoreException(Code) | | |
getCondition | public String getCondition() throws CoreException(Code) | | |
getLineNumber | public int getLineNumber() throws CoreException(Code) | | |
getMarkerMessage | protected String getMarkerMessage(boolean conditionEnabled, String condition, int hitCount, int suspendPolicy, int lineNumber)(Code) | | |
getMarkerType | public static String getMarkerType()(Code) | | Returns the type of marker associated with Java line breakpoints
|
handleConditionalBreakpointEvent | protected boolean handleConditionalBreakpointEvent(Event event, JDIThread thread, JDIDebugTarget target) throws CoreException(Code) | | Returns whether this breakpoint should resume based on the
value of its condition.
If there is not an enabled condition which evaluates to true ,
the thread should resume.
|
hasCondition | protected boolean hasCondition()(Code) | | Returns whether this breakpoint has an enabled condition
|
isConditionEnabled | public boolean isConditionEnabled() throws CoreException(Code) | | |
isConditionSuspendOnTrue | public boolean isConditionSuspendOnTrue() throws DebugException(Code) | | |
setCondition | public void setCondition(String condition) throws CoreException(Code) | | |
setConditionEnabled | public void setConditionEnabled(boolean conditionEnabled) throws CoreException(Code) | | |
setConditionSuspendOnTrue | public void setConditionSuspendOnTrue(boolean suspendOnTrue) throws CoreException(Code) | | |
supportsCondition | public boolean supportsCondition()(Code) | | |
suspendForCondition | protected boolean suspendForCondition(Event event, JDIThread thread)(Code) | | Suspends the given thread for the given breakpoint event after
a conditional expression evaluation. This method tells the thread
to fire a suspend event immediately instead of queue'ing the event.
This is required because of the asynchronous nature of expression
evaluation. The EventDispatcher has already fired queued events
by the time the evaluation completes.
|
suspendForEvent | protected boolean suspendForEvent(Event event, JDIThread thread)(Code) | | Suspends the given thread for the given breakpoint event. Returns
whether the thread suspends.
|
Methods inherited from org.eclipse.jdt.internal.debug.core.breakpoints.JavaBreakpoint | abstract protected void addInstanceFilter(EventRequest request, ObjectReference object)(Code)(Java Doc) public void addInstanceFilter(IJavaObject object) throws CoreException(Code)(Java Doc) public void addToTarget(JDIDebugTarget target) throws CoreException(Code)(Java Doc) protected void addToTargetForLocalType(JDIDebugTarget target, String enclosingTypeName) throws CoreException(Code)(Java Doc) protected void cleanupForThreadTermination(JDIThread thread)(Code)(Java Doc) protected void configureInstanceFilters(EventRequest request, JDIDebugTarget target)(Code)(Java Doc) protected void configureRequest(EventRequest request, JDIDebugTarget target) throws CoreException(Code)(Java Doc) protected void configureRequestHitCount(EventRequest request) throws CoreException(Code)(Java Doc) protected void configureRequestThreadFilter(EventRequest request, JDIDebugTarget target)(Code)(Java Doc) protected boolean createRequest(JDIDebugTarget target, ReferenceType type) throws CoreException(Code)(Java Doc) protected void createRequests(JDIDebugTarget target) throws CoreException(Code)(Java Doc) protected void decrementInstallCount() throws CoreException(Code)(Java Doc) protected void deregisterRequest(EventRequest request, JDIDebugTarget target) throws CoreException(Code)(Java Doc) protected void expireHitCount(Event event)(Code)(Java Doc) protected void fireAdding(IJavaDebugTarget target)(Code)(Java Doc) protected void fireChanged()(Code)(Java Doc) protected void fireInstalled(IJavaDebugTarget target)(Code)(Java Doc) protected void fireRemoved(IJavaDebugTarget target)(Code)(Java Doc) protected int getDefaultSuspendPolicy()(Code)(Java Doc) protected String getEnclosingReferenceTypeName() throws CoreException(Code)(Java Doc) public int getHitCount() throws CoreException(Code)(Java Doc) public int getInstallCount() throws CoreException(Code)(Java Doc) public IJavaObject[] getInstanceFilters()(Code)(Java Doc) protected int getJDISuspendPolicy() throws CoreException(Code)(Java Doc) protected String getMarkerMessage(int hitCount, int suspendPolicy)(Code)(Java Doc) public String getModelIdentifier()(Code)(Java Doc) protected ArrayList getRequests(JDIDebugTarget target)(Code)(Java Doc) public int getSuspendPolicy() throws CoreException(Code)(Java Doc) public IJavaThread getThreadFilter(IJavaDebugTarget target)(Code)(Java Doc) public IJavaThread[] getThreadFilters()(Code)(Java Doc) public String getTypeName() throws CoreException(Code)(Java Doc) public boolean handleBreakpointEvent(Event event, JDIDebugTarget target, JDIThread thread)(Code)(Java Doc) public boolean handleClassPrepareEvent(ClassPrepareEvent event, JDIDebugTarget target)(Code)(Java Doc) public void handleDebugEvents(DebugEvent[] events)(Code)(Java Doc) public boolean handleEvent(Event event, JDIDebugTarget target)(Code)(Java Doc) protected boolean hasHitCountChanged(EventRequest request) throws CoreException(Code)(Java Doc) protected void incrementInstallCount() throws CoreException(Code)(Java Doc) protected boolean installableReferenceType(ReferenceType type, JDIDebugTarget target) throws CoreException(Code)(Java Doc) protected void internalUpdateEnabledState(EventRequest request, boolean enabled, JDIDebugTarget target)(Code)(Java Doc) public boolean isExpired() throws CoreException(Code)(Java Doc) protected boolean isExpired(EventRequest request)(Code)(Java Doc) public boolean isInstalled() throws CoreException(Code)(Java Doc) protected boolean isInstalledIn(IJavaDebugTarget target)(Code)(Java Doc) abstract protected EventRequest[] newRequests(JDIDebugTarget target, ReferenceType type) throws CoreException(Code)(Java Doc) protected boolean queryInstallListeners(JDIDebugTarget target, ReferenceType type)(Code)(Java Doc) protected void recreate() throws CoreException(Code)(Java Doc) protected void recreate(JDIDebugTarget target) throws CoreException(Code)(Java Doc) protected void register(boolean register) throws CoreException(Code)(Java Doc) protected void registerRequest(EventRequest request, JDIDebugTarget target) throws CoreException(Code)(Java Doc) public void removeFromTarget(JDIDebugTarget target) throws CoreException(Code)(Java Doc) public void removeInstanceFilter(IJavaObject object) throws CoreException(Code)(Java Doc) protected void removeRequests(JDIDebugTarget target) throws CoreException(Code)(Java Doc) public void removeThreadFilter(IJavaDebugTarget javaTarget) throws CoreException(Code)(Java Doc) public void setEnabled(boolean enabled) throws CoreException(Code)(Java Doc) public void setExpired(boolean expired) throws CoreException(Code)(Java Doc) public void setHitCount(int count) throws CoreException(Code)(Java Doc) protected void setInstalledIn(IJavaDebugTarget target, boolean installed)(Code)(Java Doc) public void setMarker(IMarker marker) throws CoreException(Code)(Java Doc) abstract protected void setRequestThreadFilter(EventRequest request, ThreadReference thread)(Code)(Java Doc) public void setSuspendPolicy(int suspendPolicy) throws CoreException(Code)(Java Doc) public void setThreadFilter(IJavaThread thread) throws CoreException(Code)(Java Doc) protected void setTypeName(String typeName) throws CoreException(Code)(Java Doc) public boolean shouldSkipBreakpoint() throws CoreException(Code)(Java Doc) public boolean supportsInstanceFilters()(Code)(Java Doc) public boolean supportsThreadFilters()(Code)(Java Doc) protected boolean suspend(JDIThread thread)(Code)(Java Doc) protected void updateEnabledState(EventRequest request, JDIDebugTarget target) throws CoreException(Code)(Java Doc) public void wonSuspendVote(Event event, JDIDebugTarget target)(Code)(Java Doc)
|
|
|