Java Doc for JavaMethodBreakpoint.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
      org.eclipse.jdt.internal.debug.core.breakpoints.JavaMethodBreakpoint

JavaMethodBreakpoint
public class JavaMethodBreakpoint extends JavaLineBreakpoint implements IJavaMethodBreakpoint(Code)


Field Summary
final protected static  IntegerENTRY_EVENT
    
final protected static  IntegerEXIT_EVENT
    

Constructor Summary
public  JavaMethodBreakpoint()
    
public  JavaMethodBreakpoint(IResource resource, String typePattern, String methodName, String methodSignature, boolean entry, boolean exit, boolean nativeOnly, int lineNumber, int charStart, int charEnd, int hitCount, boolean register, Map attributes)
    

Method Summary
protected  voidaddInstanceFilter(EventRequest request, ObjectReference object)
    
public  voidaddToTarget(JDIDebugTarget target)
    
protected  voidconfigureRequestHitCount(EventRequest request)
     Configure the given request's hit count.
protected  MethodEntryRequestcreateMethodEntryRequest(JDIDebugTarget target, String typePattern)
    
protected  EventRequestcreateMethodEntryRequest(JDIDebugTarget target, ReferenceType type)
    
protected  MethodExitRequestcreateMethodExitRequest(JDIDebugTarget target, String typePattern)
    
protected  EventRequestcreateMethodExitRequest(JDIDebugTarget target, ReferenceType type)
    
protected  voidcreateRequest(JDIDebugTarget target, String typePattern)
     Creates and installs an entry and exit requests in the given type name, configuring the requests as appropriate for this breakpoint.
protected  booleancreateRequest(JDIDebugTarget target, ReferenceType type)
     Used when this breakpoint is for a specific type (i.e.
public  StringgetMethodName()
    
public  StringgetMethodSignature()
    
public  booleanhandleBreakpointEvent(Event event, JDIDebugTarget target, JDIThread thread)
    
protected  booleanhandleMethodEvent(LocatableEvent event, Method method, JDIDebugTarget target, JDIThread thread)
     Method entry/exit events are fired each time any method is invoked in a class in which a method entry/exit breakpoint has been installed. When a method entry/exit event is received by this breakpoint, ensure that the event has been fired by a method invocation that this breakpoint is interested in.
public  booleanisEntry()
    
public  booleanisEntrySuspend(IDebugTarget target)
    
public  booleanisExit()
    
public  booleanisNativeOnly()
    
public  voidremoveFromTarget(JDIDebugTarget target)
    
protected  voidsetDefaultEntryAndExit()
    
public  voidsetEnabled(boolean enabled)
    
public  voidsetEntry(boolean entry)
    
public  voidsetExit(boolean exit)
    
public  voidsetMarker(IMarker marker)
    
public  voidsetNativeOnly(boolean nativeOnly)
    
protected  voidsetRequestThreadFilter(EventRequest request, ThreadReference thread)
    
protected  voidsetTypeName(String typeName)
    
public  booleansupportsCondition()
    
protected  voidupdateEnabledState(EventRequest request, JDIDebugTarget target)
    
protected  booleanusesTypePattern()
     Returns whether this breakpoint uses type name pattern matching.

Field Detail
ENTRY_EVENT
final protected static Integer ENTRY_EVENT(Code)
Flag indicating that this breakpoint last suspended execution due to a method entry



EXIT_EVENT
final protected static Integer EXIT_EVENT(Code)
Flag indicating that this breakpoint last suspended execution due to a method exit




Constructor Detail
JavaMethodBreakpoint
public JavaMethodBreakpoint()(Code)
Constructs a new unconfigured method breakpoint



JavaMethodBreakpoint
public JavaMethodBreakpoint(IResource resource, String typePattern, String methodName, String methodSignature, boolean entry, boolean exit, boolean nativeOnly, int lineNumber, int charStart, int charEnd, int hitCount, boolean register, Map attributes) throws CoreException(Code)




Method Detail
addInstanceFilter
protected void addInstanceFilter(EventRequest request, ObjectReference object)(Code)

See Also:   org.eclipse.jdt.internal.debug.core.breakpoints.JavaBreakpoint.addInstanceFilter(EventRequestObjectReference)



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

See Also:   JavaBreakpoint.addToTarget(JDIDebugTarget)



configureRequestHitCount
protected void configureRequestHitCount(EventRequest request) throws CoreException(Code)
Configure the given request's hit count. Since method entry/exit requests do not support hit counts, we simulate a hit count by manually updating a counter stored on the request.



createMethodEntryRequest
protected MethodEntryRequest createMethodEntryRequest(JDIDebugTarget target, String typePattern) throws CoreException(Code)
Returns a new method entry request for this breakpoint's criteria
Parameters:
  the - target in which to create the request
Parameters:
  type - the type on which to create the request method entry request
exception:
  CoreException - if an exception occurs accessingthis breakpoint's underlying marker



createMethodEntryRequest
protected EventRequest createMethodEntryRequest(JDIDebugTarget target, ReferenceType type) throws CoreException(Code)
Returns a new method entry request for this breakpoint's criteria
Parameters:
  the - target in which to create the request
Parameters:
  type - the type on which to create the request method entry request
exception:
  CoreException - if an exception occurs accessingthis breakpoint's underlying marker



createMethodExitRequest
protected MethodExitRequest createMethodExitRequest(JDIDebugTarget target, String typePattern) throws CoreException(Code)
Returns a new method exit request for this breakpoint's criteria
Parameters:
  target - the target in which to create the request
Parameters:
  type - the type on which to create the request method exit request
exception:
  CoreException - if an exception occurs accessingthis breakpoint's underlying marker



createMethodExitRequest
protected EventRequest createMethodExitRequest(JDIDebugTarget target, ReferenceType type) throws CoreException(Code)
Returns a new method exit request for the given reference type
Parameters:
  target - the target in which to create the request
Parameters:
  type - the type on which to create the request method exit request
exception:
  CoreException - if an exception occurs accessingthis breakpoint's underlying marker



createRequest
protected void createRequest(JDIDebugTarget target, String typePattern) throws CoreException(Code)
Creates and installs an entry and exit requests in the given type name, configuring the requests as appropriate for this breakpoint. The requests are then enabled based on whether this breakpoint is an entry breakpoint, exit breakpoint, or both. Finally, the requests are registered with the given target.



createRequest
protected boolean createRequest(JDIDebugTarget target, ReferenceType type) throws CoreException(Code)
Used when this breakpoint is for a specific type (i.e. not using type name pattern matching).
See Also:   org.eclipse.jdt.internal.debug.core.breakpoints.JavaBreakpoint.createRequest(JDIDebugTargetReferenceType)



getMethodName
public String getMethodName()(Code)



getMethodSignature
public String getMethodSignature()(Code)



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

See Also:   JavaBreakpoint.handleBreakpointEvent(EventJDIDebugTargetJDIThread)



handleMethodEvent
protected boolean handleMethodEvent(LocatableEvent event, Method method, JDIDebugTarget target, JDIThread thread)(Code)
Method entry/exit events are fired each time any method is invoked in a class in which a method entry/exit breakpoint has been installed. When a method entry/exit event is received by this breakpoint, ensure that the event has been fired by a method invocation that this breakpoint is interested in. If it is not, do nothing.



isEntry
public boolean isEntry() throws CoreException(Code)

See Also:   IJavaMethodBreakpoint.isEntry



isEntrySuspend
public boolean isEntrySuspend(IDebugTarget target)(Code)

See Also:   IJavaMethodBreakpoint.isEntrySuspend(IDebugTarget)



isExit
public boolean isExit() throws CoreException(Code)

See Also:   IJavaMethodBreakpoint.isExit



isNativeOnly
public boolean isNativeOnly() throws CoreException(Code)

See Also:   IJavaMethodBreakpoint.isNative



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

See Also:   org.eclipse.jdt.internal.debug.core.breakpoints.JavaBreakpoint.removeFromTarget(JDIDebugTarget)



setDefaultEntryAndExit
protected void setDefaultEntryAndExit() throws CoreException(Code)
Sets the default entry and exit attributes of the method breakpoint The default values are:
  • entry = true
  • exit = false



setEnabled
public void setEnabled(boolean enabled) throws CoreException(Code)
If this breakpoint is not entry or exit enabled, set the default (entry)
See Also:   org.eclipse.debug.core.model.IBreakpoint.setEnabled(boolean)



setEntry
public void setEntry(boolean entry) throws CoreException(Code)

See Also:   IJavaMethodBreakpoint.setEntry(boolean)



setExit
public void setExit(boolean exit) throws CoreException(Code)

See Also:   IJavaMethodBreakpoint.setExit(boolean)



setMarker
public void setMarker(IMarker marker) throws CoreException(Code)
Initialize cache of attributes
See Also:   org.eclipse.debug.core.model.IBreakpoint.setMarker(IMarker)



setNativeOnly
public void setNativeOnly(boolean nativeOnly) throws CoreException(Code)

See Also:   IJavaMethodBreakpoint.setNativeOnly(boolean)



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

See Also:   JavaBreakpoint.setRequestThreadFilter(EventRequest)



setTypeName
protected void setTypeName(String typeName) throws CoreException(Code)

See Also:   org.eclipse.jdt.internal.debug.core.breakpoints.JavaBreakpoint.setTypeName(String)



supportsCondition
public boolean supportsCondition()(Code)



updateEnabledState
protected void updateEnabledState(EventRequest request, JDIDebugTarget target) throws CoreException(Code)

See Also:   JavaBreakpoint.updateEnabledState(EventRequestJDIDebugTarget)



usesTypePattern
protected boolean usesTypePattern() throws CoreException(Code)
Returns whether this breakpoint uses type name pattern matching. whether this breakpoint uses type name pattern matching



Fields inherited from org.eclipse.jdt.internal.debug.core.breakpoints.JavaLineBreakpoint
final protected static String CONDITION(Code)(Java Doc)
final protected static String CONDITION_ENABLED(Code)(Java Doc)
final protected static String CONDITION_SUSPEND_ON_TRUE(Code)(Java Doc)
final public static int NO_LINE_NUMBERS(Code)(Java Doc)
final protected static String SOURCE_NAME(Code)(Java Doc)

Methods inherited from org.eclipse.jdt.internal.debug.core.breakpoints.JavaLineBreakpoint
protected void addInstanceFilter(EventRequest request, ObjectReference object)(Code)(Java Doc)
public void addLineBreakpointAttributes(Map attributes, String modelIdentifier, boolean enabled, int lineNumber, int charStart, int charEnd)(Code)(Java Doc)
public void addToTarget(JDIDebugTarget target) throws CoreException(Code)(Java Doc)
public void addTypeNameAndHitCount(Map attributes, String typeName, int hitCount)(Code)(Java Doc)
protected void cleanupForThreadTermination(JDIThread thread)(Code)(Java Doc)
protected void clearCachedExpressionFor(JDIDebugTarget target)(Code)(Java Doc)
protected void clearCachedSuspendEvents(JDIDebugTarget target)(Code)(Java Doc)
public boolean conditionHasErrors(ICompiledExpression expression)(Code)(Java Doc)
protected BreakpointRequest createLineBreakpointRequest(Location location, JDIDebugTarget target) throws CoreException(Code)(Java Doc)
protected List determineLocations(int lineNumber, ReferenceType type, JDIDebugTarget target)(Code)(Java Doc)
public int getCharEnd() throws CoreException(Code)(Java Doc)
public int getCharStart() throws CoreException(Code)(Java Doc)
public String getCondition() throws CoreException(Code)(Java Doc)
public IAstEvaluationEngine getEvaluationEngine(IJavaDebugTarget vm, IJavaProject project)(Code)(Java Doc)
public int getLineNumber() throws CoreException(Code)(Java Doc)
protected String getMarkerMessage(boolean conditionEnabled, String condition, int hitCount, int suspendPolicy, int lineNumber)(Code)(Java Doc)
public static String getMarkerType()(Code)(Java Doc)
public boolean handleBreakpointEvent(Event event, JDIDebugTarget target, JDIThread thread)(Code)(Java Doc)
protected boolean handleConditionalBreakpointEvent(Event event, JDIThread thread, JDIDebugTarget target) throws CoreException(Code)(Java Doc)
protected boolean hasCondition()(Code)(Java Doc)
public boolean isConditionEnabled() throws CoreException(Code)(Java Doc)
public boolean isConditionSuspendOnTrue() throws DebugException(Code)(Java Doc)
protected EventRequest[] newRequests(JDIDebugTarget target, ReferenceType type) throws CoreException(Code)(Java Doc)
public void removeFromTarget(JDIDebugTarget target) throws CoreException(Code)(Java Doc)
public void setCondition(String condition) throws CoreException(Code)(Java Doc)
public void setConditionEnabled(boolean conditionEnabled) throws CoreException(Code)(Java Doc)
public void setConditionSuspendOnTrue(boolean suspendOnTrue) throws CoreException(Code)(Java Doc)
protected void setRequestThreadFilter(EventRequest request, ThreadReference thread)(Code)(Java Doc)
public boolean supportsCondition()(Code)(Java Doc)
protected boolean suspendForCondition(Event event, JDIThread thread)(Code)(Java Doc)
protected boolean suspendForEvent(Event event, JDIThread thread)(Code)(Java Doc)

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__w_w.___j__a_v__a__2__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.