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


java.lang.Object
   org.netbeans.spi.debugger.jpda.EditorContext

EditorContext
abstract public class EditorContext (Code)
Defines bridge to editor and src hierarchy. It allows to use different source viewer for debugger (like some UML view).
author:
   Jan Jancura

Inner Class :public interface BytecodeProvider
Inner Class :final public static class Operation
Inner Class :final public static class Position
Inner Class :final public static class MethodArgument

Field Summary
final public static  StringBREAKPOINT_ANNOTATION_TYPE
     Annotation type constant.
final public static  StringCALL_STACK_FRAME_ANNOTATION_TYPE
     Annotation type constant.
final public static  StringCONDITIONAL_BREAKPOINT_ANNOTATION_TYPE
     Annotation type constant.
final public static  StringCURRENT_EXPRESSION_CURRENT_LINE_ANNOTATION_TYPE
     Annotation type constant.
final public static  StringCURRENT_EXPRESSION_SECONDARY_LINE_ANNOTATION_TYPE
     Annotation type constant.
final public static  StringCURRENT_LAST_OPERATION_ANNOTATION_TYPE
     Annotation type constant.
final public static  StringCURRENT_LINE_ANNOTATION_TYPE
     Annotation type constant.
final public static  StringCURRENT_OUT_OPERATION_ANNOTATION_TYPE
     Annotation type constant.
final public static  StringDISABLED_BREAKPOINT_ANNOTATION_TYPE
     Annotation type constant.
final public static  StringDISABLED_CONDITIONAL_BREAKPOINT_ANNOTATION_TYPE
     Annotation type constant.
final public static  StringDISABLED_FIELD_BREAKPOINT_ANNOTATION_TYPE
     Annotation type constant.
final public static  StringDISABLED_METHOD_BREAKPOINT_ANNOTATION_TYPE
     Annotation type constant.
final public static  StringFIELD_BREAKPOINT_ANNOTATION_TYPE
     Annotation type constant.
final public static  StringMETHOD_BREAKPOINT_ANNOTATION_TYPE
     Annotation type constant.
final public static  StringPROP_LINE_NUMBER
     Property name constant.


Method Summary
final protected  voidaddNextOperationTo(Operation operation, Operation next)
     Assign a next operation, concatenates operations.
abstract public  voidaddPropertyChangeListener(PropertyChangeListener l)
     Adds a property change listener.
abstract public  voidaddPropertyChangeListener(String propertyName, PropertyChangeListener l)
     Adds a property change listener.
abstract public  Objectannotate(String url, int lineNumber, String annotationType, Object timeStamp)
     Adds annotation to given url on given line.
public  Objectannotate(String url, int startPosition, int endPosition, String annotationType, Object timeStamp)
     Adds annotation to given url on given character range.
final protected  OperationcreateMethodOperation(Position startPosition, Position endPosition, Position methodStartPosition, Position methodEndPosition, String methodName, String methodClassType, int bytecodeIndex)
     Creates a method operation.
final protected  PositioncreatePosition(int offset, int line, int column)
     Creates a new Position object.
abstract public  voidcreateTimeStamp(Object timeStamp)
     Creates a new time stamp.
abstract public  voiddisposeTimeStamp(Object timeStamp)
     Disposes given time stamp.
public  MethodArgument[]getArguments(String url, Operation operation)
     Get a list of arguments to the given operation.
public  MethodArgument[]getArguments(String url, int methodLineNumber)
     Get a list of arguments passed to method located at the given line.
abstract public  StringgetClassName(String url, int lineNumber)
     Returns class name for given url and line number or null.
abstract public  StringgetCurrentClassName()
     Returns name of class currently selected in editor or empty string.
abstract public  StringgetCurrentFieldName()
     Returns name of field currently selected in editor or null.
abstract public  intgetCurrentLineNumber()
     Returns number of line currently selected in editor or -1.
public  String[]getCurrentMethodDeclaration()
     Returns name and signature of method declaration currently selected in editor, or null.
abstract public  StringgetCurrentMethodName()
     Returns name of method currently selected in editor or empty string.
abstract public  StringgetCurrentURL()
     Returns URL of source currently selected in editor or empty string.
abstract public  intgetFieldLineNumber(String url, String className, String fieldName)
     Returns line number of given field in given class.
abstract public  String[]getImports(String url)
     Returns list of imports for given source url.
abstract public  intgetLineNumber(Object annotation, Object timeStamp)
     Returns line number given annotation is associated with.
public  intgetMethodLineNumber(String url, String className, String methodName, String methodSignature)
     Returns line number of given method in given class.
Parameters:
  url - the url of source file the class is deined in
Parameters:
  className - the name of class (or innerclass) the method is defined in
Parameters:
  methodName - the name of the method
Parameters:
  methodSignature - the JNI-style signature of the method.If null, then the first method found is returned.
public  Operation[]getOperations(String url, int lineNumber, BytecodeProvider bytecodeProvider)
     Get the list of operations that are in expression(s) located at the given line.
abstract public  StringgetSelectedIdentifier()
     Returns identifier currently selected in editor or null.
abstract public  StringgetSelectedMethodName()
     Returns method name currently selected in editor or empty string.
abstract public  voidremoveAnnotation(Object annotation)
     Removes given annotation.
abstract public  voidremovePropertyChangeListener(PropertyChangeListener l)
     Removes a property change listener.
abstract public  voidremovePropertyChangeListener(String propertyName, PropertyChangeListener l)
     Removes a property change listener.
abstract public  booleanshowSource(String url, int lineNumber, Object timeStamp)
     Shows source with given url on given line number.
abstract public  voidupdateTimeStamp(Object timeStamp, String url)
     Updates timeStamp for gived url.

Field Detail
BREAKPOINT_ANNOTATION_TYPE
final public static String BREAKPOINT_ANNOTATION_TYPE(Code)
Annotation type constant.



CALL_STACK_FRAME_ANNOTATION_TYPE
final public static String CALL_STACK_FRAME_ANNOTATION_TYPE(Code)
Annotation type constant.



CONDITIONAL_BREAKPOINT_ANNOTATION_TYPE
final public static String CONDITIONAL_BREAKPOINT_ANNOTATION_TYPE(Code)
Annotation type constant.



CURRENT_EXPRESSION_CURRENT_LINE_ANNOTATION_TYPE
final public static String CURRENT_EXPRESSION_CURRENT_LINE_ANNOTATION_TYPE(Code)
Annotation type constant.



CURRENT_EXPRESSION_SECONDARY_LINE_ANNOTATION_TYPE
final public static String CURRENT_EXPRESSION_SECONDARY_LINE_ANNOTATION_TYPE(Code)
Annotation type constant.



CURRENT_LAST_OPERATION_ANNOTATION_TYPE
final public static String CURRENT_LAST_OPERATION_ANNOTATION_TYPE(Code)
Annotation type constant.



CURRENT_LINE_ANNOTATION_TYPE
final public static String CURRENT_LINE_ANNOTATION_TYPE(Code)
Annotation type constant.



CURRENT_OUT_OPERATION_ANNOTATION_TYPE
final public static String CURRENT_OUT_OPERATION_ANNOTATION_TYPE(Code)
Annotation type constant.



DISABLED_BREAKPOINT_ANNOTATION_TYPE
final public static String DISABLED_BREAKPOINT_ANNOTATION_TYPE(Code)
Annotation type constant.



DISABLED_CONDITIONAL_BREAKPOINT_ANNOTATION_TYPE
final public static String DISABLED_CONDITIONAL_BREAKPOINT_ANNOTATION_TYPE(Code)
Annotation type constant.



DISABLED_FIELD_BREAKPOINT_ANNOTATION_TYPE
final public static String DISABLED_FIELD_BREAKPOINT_ANNOTATION_TYPE(Code)
Annotation type constant.



DISABLED_METHOD_BREAKPOINT_ANNOTATION_TYPE
final public static String DISABLED_METHOD_BREAKPOINT_ANNOTATION_TYPE(Code)
Annotation type constant.



FIELD_BREAKPOINT_ANNOTATION_TYPE
final public static String FIELD_BREAKPOINT_ANNOTATION_TYPE(Code)
Annotation type constant.



METHOD_BREAKPOINT_ANNOTATION_TYPE
final public static String METHOD_BREAKPOINT_ANNOTATION_TYPE(Code)
Annotation type constant.



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





Method Detail
addNextOperationTo
final protected void addNextOperationTo(Operation operation, Operation next)(Code)
Assign a next operation, concatenates operations.
Parameters:
  operation - The first operation
Parameters:
  next - The next operation



addPropertyChangeListener
abstract public void addPropertyChangeListener(PropertyChangeListener l)(Code)
Adds a property change listener.
Parameters:
  l - the listener to add



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



annotate
abstract public Object annotate(String url, int lineNumber, String annotationType, Object timeStamp)(Code)
Adds annotation to given url on given line.
Parameters:
  url - a url of source annotation should be set into
Parameters:
  lineNumber - a number of line annotation should be set into
Parameters:
  annotationType - a type of annotation to be set
Parameters:
  timeStamp - a time stamp to be used annotation or null, when the annotation can not becreated at the given URL or line number.



annotate
public Object annotate(String url, int startPosition, int endPosition, String annotationType, Object timeStamp)(Code)
Adds annotation to given url on given character range.
Parameters:
  url - a url of source annotation should be set into
Parameters:
  startPosition - the offset of the starting position of the annotation
Parameters:
  endPosition - the offset of the ending position of the annotation
Parameters:
  annotationType - a type of annotation to be set annotation or null, when the annotation can not becreated at the given URL or line number.



createMethodOperation
final protected Operation createMethodOperation(Position startPosition, Position endPosition, Position methodStartPosition, Position methodEndPosition, String methodName, String methodClassType, int bytecodeIndex)(Code)
Creates a method operation.
Parameters:
  startPosition - The starting position of the operation
Parameters:
  endPosition - The ending position of the operation
Parameters:
  methodStartPosition - The starting position of the method name
Parameters:
  methodEndPosition - The ending position of the method name
Parameters:
  methodName - The string representation of the method name
Parameters:
  methodClassType - The class type, which defines this method
Parameters:
  bytecodeIndex - The bytecode index of this method call



createPosition
final protected Position createPosition(int offset, int line, int column)(Code)
Creates a new Position object.
Parameters:
  offset - The offset
Parameters:
  line - The line number
Parameters:
  column - The column number



createTimeStamp
abstract public void createTimeStamp(Object timeStamp)(Code)
Creates a new time stamp.
Parameters:
  timeStamp - a new time stamp



disposeTimeStamp
abstract public void disposeTimeStamp(Object timeStamp)(Code)
Disposes given time stamp.
Parameters:
  timeStamp - a time stamp to be disposed



getArguments
public MethodArgument[] getArguments(String url, Operation operation)(Code)
Get a list of arguments to the given operation.
Parameters:
  url - The URL of the source file with the operation
Parameters:
  operation - The operation



getArguments
public MethodArgument[] getArguments(String url, int methodLineNumber)(Code)
Get a list of arguments passed to method located at the given line.
Parameters:
  url - The URL of the source file
Parameters:
  methodLineNumber - The line number of the method header



getClassName
abstract public String getClassName(String url, int lineNumber)(Code)
Returns class name for given url and line number or null.
Parameters:
  url - a url
Parameters:
  lineNumber - a line number class name for given url and line number or null



getCurrentClassName
abstract public String getCurrentClassName()(Code)
Returns name of class currently selected in editor or empty string. name of class currently selected in editor or empty string



getCurrentFieldName
abstract public String getCurrentFieldName()(Code)
Returns name of field currently selected in editor or null. name of field currently selected in editor or null



getCurrentLineNumber
abstract public int getCurrentLineNumber()(Code)
Returns number of line currently selected in editor or -1. number of line currently selected in editor or -1



getCurrentMethodDeclaration
public String[] getCurrentMethodDeclaration()(Code)
Returns name and signature of method declaration currently selected in editor, or null. name and signature of the method, or null.



getCurrentMethodName
abstract public String getCurrentMethodName()(Code)
Returns name of method currently selected in editor or empty string. name of method currently selected in editor or empty string



getCurrentURL
abstract public String getCurrentURL()(Code)
Returns URL of source currently selected in editor or empty string. URL of source currently selected in editor or empty string



getFieldLineNumber
abstract public int getFieldLineNumber(String url, String className, String fieldName)(Code)
Returns line number of given field in given class.
Parameters:
  url - the url of source file the class is deined in
Parameters:
  className - the name of class (or innerclass) the field is defined in
Parameters:
  fieldName - the name of field line number or -1



getImports
abstract public String[] getImports(String url)(Code)
Returns list of imports for given source url.
Parameters:
  url - the url of source file list of imports for given source url



getLineNumber
abstract public int getLineNumber(Object annotation, Object timeStamp)(Code)
Returns line number given annotation is associated with.
Parameters:
  annotation - a annotation
Parameters:
  timeStamp - a time stamp to be used line number given annotation is associated with



getMethodLineNumber
public int getMethodLineNumber(String url, String className, String methodName, String methodSignature)(Code)
Returns line number of given method in given class.
Parameters:
  url - the url of source file the class is deined in
Parameters:
  className - the name of class (or innerclass) the method is defined in
Parameters:
  methodName - the name of the method
Parameters:
  methodSignature - the JNI-style signature of the method.If null, then the first method found is returned. line number or -1



getOperations
public Operation[] getOperations(String url, int lineNumber, BytecodeProvider bytecodeProvider)(Code)
Get the list of operations that are in expression(s) located at the given line.
Parameters:
  url - The file's URL
Parameters:
  lineNumber - The line number
Parameters:
  bytecodeProvider - The provider of method bytecodes.



getSelectedIdentifier
abstract public String getSelectedIdentifier()(Code)
Returns identifier currently selected in editor or null. identifier currently selected in editor or null



getSelectedMethodName
abstract public String getSelectedMethodName()(Code)
Returns method name currently selected in editor or empty string. method name currently selected in editor or empty string



removeAnnotation
abstract public void removeAnnotation(Object annotation)(Code)
Removes given annotation.



removePropertyChangeListener
abstract public void removePropertyChangeListener(PropertyChangeListener l)(Code)
Removes a property change listener.
Parameters:
  l - the listener to remove



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



showSource
abstract public boolean showSource(String url, int lineNumber, Object timeStamp)(Code)
Shows source with given url on given line number.
Parameters:
  url - a url of source to be shown
Parameters:
  lineNumber - a number of line to be shown
Parameters:
  timeStamp - a time stamp to be used



updateTimeStamp
abstract public void updateTimeStamp(Object timeStamp, String url)(Code)
Updates timeStamp for gived url.
Parameters:
  timeStamp - time stamp to be updated
Parameters:
  url - an url



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.