| 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 | |
Method Summary | |
final protected void | addNextOperationTo(Operation operation, Operation next) Assign a next operation, concatenates operations. | abstract public void | addPropertyChangeListener(PropertyChangeListener l) Adds a property change listener. | abstract public void | addPropertyChangeListener(String propertyName, PropertyChangeListener l) Adds a property change listener. | abstract public Object | annotate(String url, int lineNumber, String annotationType, Object timeStamp) Adds annotation to given url on given line. | public Object | annotate(String url, int startPosition, int endPosition, String annotationType, Object timeStamp) Adds annotation to given url on given character range. | final protected Operation | createMethodOperation(Position startPosition, Position endPosition, Position methodStartPosition, Position methodEndPosition, String methodName, String methodClassType, int bytecodeIndex) Creates a method operation. | final protected Position | createPosition(int offset, int line, int column) Creates a new
Position object. | abstract public void | createTimeStamp(Object timeStamp) Creates a new time stamp. | abstract public void | disposeTimeStamp(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 String | getClassName(String url, int lineNumber) Returns class name for given url and line number or null. | abstract public String | getCurrentClassName() Returns name of class currently selected in editor or empty string. | abstract public String | getCurrentFieldName() Returns name of field currently selected in editor or null . | abstract public int | getCurrentLineNumber() 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 String | getCurrentMethodName() Returns name of method currently selected in editor or empty string. | abstract public String | getCurrentURL() Returns URL of source currently selected in editor or empty string. | abstract public int | getFieldLineNumber(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 int | getLineNumber(Object annotation, Object timeStamp) Returns line number given annotation is associated with. | public int | getMethodLineNumber(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 String | getSelectedIdentifier() Returns identifier currently selected in editor or null . | abstract public String | getSelectedMethodName() Returns method name currently selected in editor or empty string. | abstract public void | removeAnnotation(Object annotation) Removes given annotation. | abstract public void | removePropertyChangeListener(PropertyChangeListener l) Removes a property change listener. | abstract public void | removePropertyChangeListener(String propertyName, PropertyChangeListener l) Removes a property change listener. | abstract public boolean | showSource(String url, int lineNumber, Object timeStamp) Shows source with given url on given line number. | abstract public void | updateTimeStamp(Object timeStamp, String url) Updates timeStamp for gived url. |
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.
|
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 |
|
|