Java Doc for JavaLineBreakpoint.java in  » IDE-Eclipse » jdt » org » eclipse » jdt » internal » debug » core » breakpoints » Java Source Code / Java DocumentationJava Source Code and Java Documentation

Java Source Code / Java Documentation
1. 6.0 JDK Core
2. 6.0 JDK Modules
3. 6.0 JDK Modules com.sun
4. 6.0 JDK Modules com.sun.java
5. 6.0 JDK Modules sun
6. 6.0 JDK Platform
7. Ajax
8. Apache Harmony Java SE
9. Aspect oriented
10. Authentication Authorization
11. Blogger System
12. Build
13. Byte Code
14. Cache
15. Chart
16. Chat
17. Code Analyzer
18. Collaboration
19. Content Management System
20. Database Client
21. Database DBMS
22. Database JDBC Connection Pool
23. Database ORM
24. Development
25. EJB Server geronimo
26. EJB Server GlassFish
27. EJB Server JBoss 4.2.1
28. EJB Server resin 3.1.5
29. ERP CRM Financial
30. ESB
31. Forum
32. GIS
33. Graphic Library
34. Groupware
35. HTML Parser
36. IDE
37. IDE Eclipse
38. IDE Netbeans
39. Installer
40. Internationalization Localization
41. Inversion of Control
42. Issue Tracking
43. J2EE
44. JBoss
45. JMS
46. JMX
47. Library
48. Mail Clients
49. Net
50. Parser
51. PDF
52. Portal
53. Profiler
54. Project Management
55. Report
56. RSS RDF
57. Rule Engine
58. Science
59. Scripting
60. Search Engine
61. Security
62. Sevlet Container
63. Source Control
64. Swing Library
65. Template Engine
66. Test Coverage
67. Testing
68. UML
69. Web Crawler
70. Web Framework
71. Web Mail
72. Web Server
73. Web Services
74. Web Services apache cxf 2.0.1
75. Web Services AXIS2
76. Wiki Engine
77. Workflow Engines
78. XML
79. XML UI
Java
Java Tutorial
Java Open Source
Jar File Download
Java Articles
Java Products
Java by API
Photoshop Tutorials
Maya Tutorials
Flash Tutorials
3ds-Max Tutorials
Illustrator Tutorials
GIMP Tutorials
C# / C Sharp
C# / CSharp Tutorial
C# / CSharp Open Source
ASP.Net
ASP.NET Tutorial
JavaScript DHTML
JavaScript Tutorial
JavaScript Reference
HTML / CSS
HTML CSS Reference
C / ANSI-C
C Tutorial
C++
C++ Tutorial
Ruby
PHP
Python
Python Tutorial
Python Open Source
SQL Server / T-SQL
SQL Server / T-SQL Tutorial
Oracle PL / SQL
Oracle PL/SQL Tutorial
PostgreSQL
SQL / MySQL
MySQL Tutorial
VB.Net
VB.Net Tutorial
Flash / Flex / ActionScript
VBA / Excel / Access / Word
XML
XML Tutorial
Microsoft Office PowerPoint 2007 Tutorial
Microsoft Office Excel 2007 Tutorial
Microsoft Office Word 2007 Tutorial
Java Source Code / Java Documentation » IDE Eclipse » jdt » org.eclipse.jdt.internal.debug.core.breakpoints 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


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,
JavaLineBreakpoint
public class JavaLineBreakpoint extends JavaBreakpoint implements IJavaLineBreakpoint(Code)

Inner Class :class EvaluationListener implements IEvaluationListener

Field Summary
final protected static  StringCONDITION
     Breakpoint attribute storing a breakpoint's conditional expression (value "org.eclipse.jdt.debug.core.condition").
final protected static  StringCONDITION_ENABLED
     Breakpoint attribute storing a breakpoint's condition enablement (value "org.eclipse.jdt.debug.core.conditionEnabled").
final protected static  StringCONDITION_SUSPEND_ON_TRUE
     Breakpoint attribute storing a breakpoint's condition suspend policy (value " org.eclipse.jdt.debug.core.conditionSuspendOnTrue" ).
final public static  intNO_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  StringSOURCE_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  voidaddInstanceFilter(EventRequest request, ObjectReference object)
    
public  voidaddLineBreakpointAttributes(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  voidaddToTarget(JDIDebugTarget target)
    
public  voidaddTypeNameAndHitCount(Map attributes, String typeName, int hitCount)
     Adds type name and hit count attributes to the given map.
protected  voidcleanupForThreadTermination(JDIThread thread)
    
protected  voidclearCachedExpressionFor(JDIDebugTarget target)
     Removes all compiled expressions which are currently being cached for threads in the given target.
protected  voidclearCachedSuspendEvents(JDIDebugTarget target)
     Removes all suspend events which are currently being cached for threads in the given target.
public  booleanconditionHasErrors(ICompiledExpression expression)
    
protected  BreakpointRequestcreateLineBreakpointRequest(Location location, JDIDebugTarget target)
     Creates, installs, and returns a line breakpoint request at the given location for this breakpoint.
protected  ListdetermineLocations(int lineNumber, ReferenceType type, JDIDebugTarget target)
     Returns a list of locations of the given line number in the given type.
public  intgetCharEnd()
    
public  intgetCharStart()
    
public  StringgetCondition()
    
public  IAstEvaluationEnginegetEvaluationEngine(IJavaDebugTarget vm, IJavaProject project)
     Returns an evaluation engine for evaluating this breakpoint's condition in the given target and project context.
public  intgetLineNumber()
    
protected  StringgetMarkerMessage(boolean conditionEnabled, String condition, int hitCount, int suspendPolicy, int lineNumber)
    
public static  StringgetMarkerType()
    
public  booleanhandleBreakpointEvent(Event event, JDIDebugTarget target, JDIThread thread)
    
protected  booleanhandleConditionalBreakpointEvent(Event event, JDIThread thread, JDIDebugTarget target)
     Returns whether this breakpoint should resume based on the value of its condition.
protected  booleanhasCondition()
    
public  booleanisConditionEnabled()
    
public  booleanisConditionSuspendOnTrue()
    
protected  EventRequest[]newRequests(JDIDebugTarget target, ReferenceType type)
    
public  voidremoveFromTarget(JDIDebugTarget target)
    
public  voidsetCondition(String condition)
    
public  voidsetConditionEnabled(boolean conditionEnabled)
    
public  voidsetConditionSuspendOnTrue(boolean suspendOnTrue)
    
protected  voidsetRequestThreadFilter(EventRequest request, ThreadReference thread)
    
public  booleansupportsCondition()
    
protected  booleansuspendForCondition(Event event, JDIThread thread)
     Suspends the given thread for the given breakpoint event after a conditional expression evaluation.
protected  booleansuspendForEvent(Event event, JDIThread thread)
     Suspends the given thread for the given breakpoint event.

Field Detail
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.




Constructor Detail
JavaLineBreakpoint
public JavaLineBreakpoint()(Code)



JavaLineBreakpoint
public JavaLineBreakpoint(IResource resource, String typeName, int lineNumber, int charStart, int charEnd, int hitCount, boolean add, Map attributes) throws DebugException(Code)

See Also:   JDIDebugModel.createLineBreakpoint(IResourceStringintintintintbooleanMap)



JavaLineBreakpoint
protected JavaLineBreakpoint(IResource resource, String typeName, int lineNumber, int charStart, int charEnd, int hitCount, boolean add, Map attributes, String markerType) throws DebugException(Code)




Method Detail
addInstanceFilter
protected void addInstanceFilter(EventRequest request, ObjectReference object)(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:
  1. IBreakpoint.ID
  2. IBreakpoint.ENABLED
  3. IMarker.LINE_NUMBER
  4. IMarker.CHAR_START
  5. IMarker.CHAR_END



addToTarget
public void addToTarget(JDIDebugTarget target) throws CoreException(Code)



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)



getEvaluationEngine
public IAstEvaluationEngine getEvaluationEngine(IJavaDebugTarget vm, IJavaProject project)(Code)
Returns an evaluation engine for evaluating this breakpoint's condition in the given target and project context.



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



handleBreakpointEvent
public boolean handleBreakpointEvent(Event event, JDIDebugTarget target, JDIThread thread)(Code)

See Also:   org.eclipse.jdt.internal.debug.core.breakpoints.JavaBreakpoint.handleBreakpointEvent(com.sun.jdi.event.Eventorg.eclipse.jdt.internal.debug.core.model.JDIDebugTargetorg.eclipse.jdt.internal.debug.core.model.JDIThread)
See Also:   (From referenced JavaDoc:
See Also:   Returns whether the thread should be resumed



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)



newRequests
protected EventRequest[] newRequests(JDIDebugTarget target, ReferenceType type) throws CoreException(Code)



removeFromTarget
public void removeFromTarget(JDIDebugTarget target) throws CoreException(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)



setRequestThreadFilter
protected void setRequestThreadFilter(EventRequest request, ThreadReference thread)(Code)

See Also:   JavaBreakpoint.setRequestThreadFilter(EventRequest)



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.



Fields inherited from org.eclipse.jdt.internal.debug.core.breakpoints.JavaBreakpoint
final protected static String EXPIRED(Code)(Java Doc)
final protected static String HIT_COUNT(Code)(Java Doc)
final protected static String INSTALL_COUNT(Code)(Java Doc)
final public static String JAVA_BREAKPOINT_PROPERTY(Code)(Java Doc)
final protected static String SUSPEND_POLICY(Code)(Java Doc)
final protected static String TYPE_NAME(Code)(Java Doc)
protected Map fFilteredThreadsByTarget(Code)(Java Doc)
protected Set fInstalledTargets(Code)(Java Doc)
protected String fInstalledTypeName(Code)(Java Doc)
protected List fInstanceFilters(Code)(Java Doc)
protected HashMap fRequestsByTarget(Code)(Java Doc)
final protected static IJavaObject[] fgEmptyInstanceFilters(Code)(Java Doc)
final protected static String[] fgExpiredEnabledAttributes(Code)(Java Doc)

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)

w___ww_.___j___a___v__a2__s._c_o___m_ | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.