Java Doc for JPDADebugger.java in  » IDE-Netbeans » ant » org » netbeans » api » debugger » jpda » 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 Netbeans » ant » org.netbeans.api.debugger.jpda 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   org.netbeans.api.debugger.jpda.JPDADebugger

JPDADebugger
abstract public class JPDADebugger (Code)
Represents one JPDA debugger session (one com.sun.jdi.VirtualMachine ).

How to obtain it from DebuggerEngine:
 JPDADebugger jpdaDebugger = (JPDADebugger) debuggerEngine.lookup 
 (JPDADebugger.class);

author:
   Jan Jancura


Field Summary
final public static  StringENGINE_ID
     ID of JPDA Debugger Engine.
final public static  StringPROP_CURRENT_CALL_STACK_FRAME
     Name of property for current stack frame.
final public static  StringPROP_CURRENT_THREAD
     Name of property for current thread.
final public static  StringPROP_STATE
     Name of property for state of debugger.
final public static  StringPROP_SUSPEND
     Property name constant.
final public static  StringSESSION_ID
     ID of JPDA Debugger Engine.
final public static  intSTATE_DISCONNECTED
     Debugger state constant.
final public static  intSTATE_RUNNING
     Debugger state constant.
final public static  intSTATE_STARTING
     Debugger state constant.
final public static  intSTATE_STOPPED
     Debugger state constant.
final public static  intSUSPEND_ALL
     Suspend property value constant.
final public static  intSUSPEND_EVENT_THREAD
     Suspend property value constant.


Method Summary
abstract public  voidaddPropertyChangeListener(PropertyChangeListener l)
     Adds property change listener.
abstract public  voidaddPropertyChangeListener(String propertyName, PropertyChangeListener l)
     Adds property change listener.
public static  JPDADebuggerattach(String hostName, int portNumber, Object[] services)
     This utility method helps to start a new JPDA debugger session.
public static  JPDADebuggerattach(String name, Object[] services)
     This utility method helps to start a new JPDA debugger session.
public  booleancanBeModified()
     Determines if the target debuggee can be modified.
abstract public  booleancanFixClasses()
     Returns true if this debugger supports fix & continue (HotSwap).
public  booleancanGetInstanceInfo()
     Test whether the debuggee supports accessing of class instances, instance counts, and referring objects.
abstract public  booleancanPopFrames()
     Returns true if this debugger supports Pop action.
public  JPDAStepcreateJPDAStep(int size, int depth)
     Creates a new JPDAStep .
abstract public  Variableevaluate(String expression)
     Evaluates given expression in the current context.
protected  voidfireBreakpointEvent(JPDABreakpoint breakpoint, JPDABreakpointEvent event)
     Helper method that fires JPDABreakpointEvent on JPDABreakpoints.
abstract public  voidfixClasses(Map<String, byte[]> classes)
     Implements fix & continue (HotSwap).
public  List<JPDAClassType>getAllClasses()
     Get the list of all classes in the debuggee.
public  List<JPDAClassType>getClassesByName(String name)
     Get the list of all classes mathing the given name in the debuggee.
abstract public  CallStackFramegetCurrentCallStackFrame()
     Returns current stack frame or null.
abstract public  JPDAThreadgetCurrentThread()
     Returns current thread or null.
public  long[]getInstanceCounts(List<JPDAClassType> classTypes)
     Retrieves the number of instances of each class in the list.
abstract public  SmartSteppingFiltergetSmartSteppingFilter()
     Returns instance of SmartSteppingFilter.
abstract public  intgetState()
     Returns current state of JPDA debugger.
abstract public  intgetSuspend()
     Gets value of suspend property.
public static  voidlaunch(String mainClassName, String[] args, String classPath, boolean suspend)
     This utility method helps to start a new JPDA debugger session.
public static  JPDADebuggerlisten(ListeningConnector connector, Map<String, ? extends Argument> args, Object[] services)
     This utility method helps to start a new JPDA debugger session.
abstract public  voidremovePropertyChangeListener(PropertyChangeListener l)
     Removes property change listener.
abstract public  voidremovePropertyChangeListener(String propertyName, PropertyChangeListener l)
     Removes property change listener.
abstract public  voidsetSuspend(int s)
     Sets value of suspend property.
public static  voidstartListening(ListeningConnector connector, Map<String, ? extends Argument> args, Object[] services)
     This utility method helps to start a new JPDA debugger session.
abstract public  voidwaitRunning()
     Waits till the Virtual Machine is started and returns DebuggerStartException if some problem occurres.

Field Detail
ENGINE_ID
final public static String ENGINE_ID(Code)
ID of JPDA Debugger Engine.



PROP_CURRENT_CALL_STACK_FRAME
final public static String PROP_CURRENT_CALL_STACK_FRAME(Code)
Name of property for current stack frame.



PROP_CURRENT_THREAD
final public static String PROP_CURRENT_THREAD(Code)
Name of property for current thread.



PROP_STATE
final public static String PROP_STATE(Code)
Name of property for state of debugger.



PROP_SUSPEND
final public static String PROP_SUSPEND(Code)
Property name constant.



SESSION_ID
final public static String SESSION_ID(Code)
ID of JPDA Debugger Engine.



STATE_DISCONNECTED
final public static int STATE_DISCONNECTED(Code)
Debugger state constant.



STATE_RUNNING
final public static int STATE_RUNNING(Code)
Debugger state constant.



STATE_STARTING
final public static int STATE_STARTING(Code)
Debugger state constant.



STATE_STOPPED
final public static int STATE_STOPPED(Code)
Debugger state constant.



SUSPEND_ALL
final public static int SUSPEND_ALL(Code)
Suspend property value constant.



SUSPEND_EVENT_THREAD
final public static int SUSPEND_EVENT_THREAD(Code)
Suspend property value constant.





Method Detail
addPropertyChangeListener
abstract public void addPropertyChangeListener(PropertyChangeListener l)(Code)
Adds property change listener.
Parameters:
  l - new listener.



addPropertyChangeListener
abstract public void addPropertyChangeListener(String propertyName, PropertyChangeListener l)(Code)
Adds property change listener.
Parameters:
  propertyName - a name of property to listen on
Parameters:
  l - new listener.



attach
public static JPDADebugger attach(String hostName, int portNumber, Object[] services) throws DebuggerStartException(Code)
This utility method helps to start a new JPDA debugger session. Its implementation use AttachingDICookie and org.netbeans.api.debugger.DebuggerManager.getDebuggerManager .
Parameters:
  hostName - a name of computer to attach to
Parameters:
  portNumber - a port number



attach
public static JPDADebugger attach(String name, Object[] services) throws DebuggerStartException(Code)
This utility method helps to start a new JPDA debugger session. Its implementation use AttachingDICookie and org.netbeans.api.debugger.DebuggerManager.getDebuggerManager .
Parameters:
  name - a name of shared memory block



canBeModified
public boolean canBeModified()(Code)
Determines if the target debuggee can be modified. true if the target debuggee can be modified or whenthis information is not available (on JDK 1.4).
since:
   2.3



canFixClasses
abstract public boolean canFixClasses()(Code)
Returns true if this debugger supports fix & continue (HotSwap). true if this debugger supports fix & continue



canGetInstanceInfo
public boolean canGetInstanceInfo()(Code)
Test whether the debuggee supports accessing of class instances, instance counts, and referring objects.
See Also:   JPDADebugger.getInstanceCounts
See Also:   JPDAClassType.getInstanceCount
See Also:   JPDAClassType.getInstances
See Also:   ObjectVariable.getReferringObjects true when the feature is supported, false otherwise.



canPopFrames
abstract public boolean canPopFrames()(Code)
Returns true if this debugger supports Pop action. true if this debugger supports Pop action



createJPDAStep
public JPDAStep createJPDAStep(int size, int depth)(Code)
Creates a new JPDAStep . Parameters correspond to JPDAStep constructor. JPDAStep {@link java.lang.UnsupportedOperationException} If not overridden



evaluate
abstract public Variable evaluate(String expression) throws InvalidExpressionException(Code)
Evaluates given expression in the current context.
Parameters:
  expression - a expression to be evaluated current value of given expression



fireBreakpointEvent
protected void fireBreakpointEvent(JPDABreakpoint breakpoint, JPDABreakpointEvent event)(Code)
Helper method that fires JPDABreakpointEvent on JPDABreakpoints.
Parameters:
  breakpoint - a breakpoint to be changed
Parameters:
  event - a event to be fired



fixClasses
abstract public void fixClasses(Map<String, byte[]> classes)(Code)
Implements fix & continue (HotSwap). Map should contain class names as a keys, and byte[] arrays as a values.
Parameters:
  classes - a map from class names to be fixed to byte[]



getAllClasses
public List<JPDAClassType> getAllClasses()(Code)
Get the list of all classes in the debuggee. The list of all classes.



getClassesByName
public List<JPDAClassType> getClassesByName(String name)(Code)
Get the list of all classes mathing the given name in the debuggee. The list of classes.



getCurrentCallStackFrame
abstract public CallStackFrame getCurrentCallStackFrame()(Code)
Returns current stack frame or null. current stack frame or null



getCurrentThread
abstract public JPDAThread getCurrentThread()(Code)
Returns current thread or null. current thread or null



getInstanceCounts
public long[] getInstanceCounts(List<JPDAClassType> classTypes) throws UnsupportedOperationException(Code)
Retrieves the number of instances of each class in the list. Use JPDADebugger.canGetInstanceInfo to determine if this operation is supported. an array of long containing one instance counts foreach respective element in the classTypes list.



getSmartSteppingFilter
abstract public SmartSteppingFilter getSmartSteppingFilter()(Code)
Returns instance of SmartSteppingFilter. instance of SmartSteppingFilter



getState
abstract public int getState()(Code)
Returns current state of JPDA debugger. current state of JPDA debugger
See Also:   JPDADebugger.STATE_STARTING
See Also:   JPDADebugger.STATE_RUNNING
See Also:   JPDADebugger.STATE_STOPPED
See Also:   JPDADebugger.STATE_DISCONNECTED



getSuspend
abstract public int getSuspend()(Code)
Gets value of suspend property. value of suspend property



launch
public static void launch(String mainClassName, String[] args, String classPath, boolean suspend)(Code)
This utility method helps to start a new JPDA debugger session. Its implementation use LaunchingDICookie and org.netbeans.api.debugger.DebuggerManager.getDebuggerManager .
Parameters:
  mainClassName - a name or main class
Parameters:
  args - command line arguments
Parameters:
  classPath - a classPath
Parameters:
  suspend - if true session will be suspended



listen
public static JPDADebugger listen(ListeningConnector connector, Map<String, ? extends Argument> args, Object[] services) throws DebuggerStartException(Code)
This utility method helps to start a new JPDA debugger session. Its implementation use ListeningDICookie and org.netbeans.api.debugger.DebuggerManager.getDebuggerManager .
Parameters:
  connector - The listening connector
Parameters:
  args - The arguments
Parameters:
  services - The additional services



removePropertyChangeListener
abstract public void removePropertyChangeListener(PropertyChangeListener l)(Code)
Removes property change listener.
Parameters:
  l - removed listener.



removePropertyChangeListener
abstract public void removePropertyChangeListener(String propertyName, PropertyChangeListener l)(Code)
Removes property change listener.
Parameters:
  propertyName - a name of property to listen on
Parameters:
  l - removed listener.



setSuspend
abstract public void setSuspend(int s)(Code)
Sets value of suspend property.
Parameters:
  s - a new value of suspend property



startListening
public static void startListening(ListeningConnector connector, Map<String, ? extends Argument> args, Object[] services) throws DebuggerStartException(Code)
This utility method helps to start a new JPDA debugger session. Its implementation use ListeningDICookie and org.netbeans.api.debugger.DebuggerManager.getDebuggerManager .
Parameters:
  connector - The listening connector
Parameters:
  args - The arguments
Parameters:
  services - The additional services



waitRunning
abstract public void waitRunning() throws DebuggerStartException(Code)
Waits till the Virtual Machine is started and returns DebuggerStartException if some problem occurres.
throws:
  DebuggerStartException - is some problems occurres during debugger start
See Also:   AbstractDICookie.getVirtualMachine



Methods inherited from java.lang.Object
native protected Object clone() throws CloneNotSupportedException(Code)(Java Doc)
public boolean equals(Object obj)(Code)(Java Doc)
protected void finalize() throws Throwable(Code)(Java Doc)
final native public Class getClass()(Code)(Java Doc)
native public int hashCode()(Code)(Java Doc)
final native public void notify()(Code)(Java Doc)
final native public void notifyAll()(Code)(Java Doc)
public String toString()(Code)(Java Doc)
final native public void wait(long timeout) throws InterruptedException(Code)(Java Doc)
final public void wait(long timeout, int nanos) throws InterruptedException(Code)(Java Doc)
final public void wait() throws InterruptedException(Code)(Java Doc)

www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.