| org.eclipse.jdt.internal.ui.compare.JavaNode
JavaNode | class JavaNode extends DocumentRangeNode implements ITypedElement(Code) | | Comparable Java elements are represented as JavaNodes.
Extends the DocumentRangeNode with method signature information.
|
Constructor Summary | |
public | JavaNode(JavaNode parent, int type, String name, int start, int length) Creates a JavaNode under the given parent.
Parameters: parent - the parent node Parameters: type - the Java elements type. | public | JavaNode(IDocument document) Creates a JavaNode for a CU. |
ANNOTATION | final public static int ANNOTATION(Code) | | |
CLASS | final public static int CLASS(Code) | | |
CONSTRUCTOR | final public static int CONSTRUCTOR(Code) | | |
CU | final public static int CU(Code) | | |
ENUM | final public static int ENUM(Code) | | |
FIELD | final public static int FIELD(Code) | | |
IMPORT | final public static int IMPORT(Code) | | |
IMPORT_CONTAINER | final public static int IMPORT_CONTAINER(Code) | | |
INIT | final public static int INIT(Code) | | |
INTERFACE | final public static int INTERFACE(Code) | | |
METHOD | final public static int METHOD(Code) | | |
PACKAGE | final public static int PACKAGE(Code) | | |
JavaNode | public JavaNode(JavaNode parent, int type, String name, int start, int length)(Code) | | Creates a JavaNode under the given parent.
Parameters: parent - the parent node Parameters: type - the Java elements type. Legal values are from the range CU to METHOD of this class. Parameters: name - the name of the Java element Parameters: start - the starting position of the java element in the underlying document Parameters: length - the number of characters of the java element in the underlying document |
JavaNode | public JavaNode(IDocument document)(Code) | | Creates a JavaNode for a CU. It represents the root of a
JavaNode tree, so its parent is null.
Parameters: document - the document which contains the Java element |
extractArgumentList | public String extractArgumentList()(Code) | | Extracts the method's arguments name the signature.
Used for smart matching.
|
extractMethodName | public String extractMethodName()(Code) | | Extracts the method name from the signature.
Used for smart matching.
|
getImage | public Image getImage()(Code) | | Returns a shared image for this Java element.
see ITypedInput.getImage
|
getInitializerCount | public String getInitializerCount()(Code) | | |
getName | public String getName()(Code) | | Returns a name which is presented in the UI.
See Also: ITypedElement.getName |
|
|