In order to implement annotation of method breakpoints in Editor, we need to be +able to locate individual methods in Editor, based on their names and signature. Also we need +annotation types for fields and methods. +
+
+ Added methods:
+ EditorContext.getMethodLineNumber()
,
+ EditorContext.getCurrentMethodDeclaration()
,
+
+ Added fields:
+ EditorContext.FIELD_BREAKPOINT_ANNOTATION_TYPE
,
+ EditorContext.DISABLED_FIELD_BREAKPOINT_ANNOTATION_TYPE
,
+ EditorContext.METHOD_BREAKPOINT_ANNOTATION_TYPE
+ EditorContext.DISABLED_METHOD_BREAKPOINT_ANNOTATION_TYPE
+
null
, then the first method found is returned.
+ *
+ * @return line number or -1
+ */
+ public int getMethodLineNumber (
+ String url,
+ final String className,
+ final String methodName,
+ final String methodSignature
+ ) {
+ return -1;
+ }
+
+
+ /**
+ * Returns name and signature of method declaration currently selected in editor,
+ * or null
.
+ *
+ * @return name and signature of the method, or null
.
+ */
+ public String[] getCurrentMethodDeclaration() {
+ return null;
+ }
+
/**
* Returns class name for given url and line number or null.