Example usage for Java org.eclipse.jdt.core.dom FieldDeclaration fields, constructors, methods, implement or subclass
The text is from its open source code.
ChildListPropertyDescriptor | MODIFIERS2_PROPERTY The "modifiers" structural property of this node type (element type: IExtendedModifier ) (added in JLS3 API). |
ChildPropertyDescriptor | TYPE_PROPERTY The "type" structural property of this node type (child type: Type ). |
ChildListPropertyDescriptor | FRAGMENTS_PROPERTY The "fragments" structural property of this node type (element type: VariableDeclarationFragment ). |
FieldDeclaration(AST ast) Creates a new unparented field declaration statement node owned by the given AST. |
void | accept(ASTVisitor visitor) Accepts the given visitor on a visit of the current node. |
void | delete() Removes this node from its parent. |
boolean | equals(Object obj) The ASTNode implementation of this Object method uses object identity (==). |
List | fragments() Returns the live list of variable declaration fragments in this field declaration. |
AST | getAST() Returns this node's AST. |
int | getFlags() Returns the flags associated with this node. |
Javadoc | getJavadoc() Returns the doc comment node. |
ChildPropertyDescriptor | getJavadocProperty() Returns structural property descriptor for the "javadoc" property of this node (child type: Javadoc ). |
int | getLength() Returns the length in characters of the original source file indicating where the source fragment corresponding to this node ends. |
int | getModifiers() Returns the modifiers explicitly specified on this declaration. |
int | getNodeType() Returns an integer value identifying the type of this concrete AST node. |
ASTNode | getParent() Returns this node's parent node, or null if this is the root node. |
Object | getProperty(String propertyName) Returns the value of the named property of this node, or null if none. |
int | getStartPosition() Returns the character index into the original source file indicating where the source fragment corresponding to this node begins. |
Object | getStructuralProperty(StructuralPropertyDescriptor property) Returns the value of the given structural property for this node. |
Type | getType() Returns the base type declared in this field declaration. |
void | internalSetModifiers(int pmodifiers) Internal synonym for deprecated method. |
List | modifiers() Returns the live ordered list of modifiers and annotations of this declaration (added in JLS3 API). |
void | setFlags(int flags) Sets the flags associated with this node to the given value. |
void | setJavadoc(Javadoc docComment) Sets or clears the doc comment node. |
void | setModifiers(int modifiers) Sets the modifiers explicitly specified on this declaration (JLS2 API only). |
void | setProperty(String propertyName, Object data) Sets the named property of this node to the given value, or to null to clear it. |
void | setSourceRange(int startPosition, int length) Sets the source range of the original source file where the source fragment corresponding to this node was found. |
void | setType(Type type) Sets the base type declared in this field declaration to the given type. |
String | toString() Returns a string representation of this node suitable for debugging purposes only. |