Example usage for Java org.eclipse.jdt.core.dom ASTNode fields, constructors, methods, implement or subclass
The text is from its open source code.
int | ANONYMOUS_CLASS_DECLARATION Node type constant indicating a node of type AnonymousClassDeclaration . |
int | ARRAY_ACCESS Node type constant indicating a node of type ArrayAccess . |
int | ARRAY_CREATION Node type constant indicating a node of type ArrayCreation . |
int | ARRAY_INITIALIZER Node type constant indicating a node of type ArrayInitializer . |
int | ARRAY_TYPE Node type constant indicating a node of type ArrayType . |
int | ASSERT_STATEMENT Node type constant indicating a node of type AssertStatement . |
int | ASSIGNMENT Node type constant indicating a node of type Assignment . |
int | BLOCK Node type constant indicating a node of type Block . |
int | BOOLEAN_LITERAL Node type constant indicating a node of type BooleanLiteral . |
int | BREAK_STATEMENT Node type constant indicating a node of type BreakStatement . |
int | CAST_EXPRESSION Node type constant indicating a node of type CastExpression . |
int | CATCH_CLAUSE Node type constant indicating a node of type CatchClause . |
int | CHARACTER_LITERAL Node type constant indicating a node of type CharacterLiteral . |
int | CLASS_INSTANCE_CREATION Node type constant indicating a node of type ClassInstanceCreation . |
int | COMPILATION_UNIT Node type constant indicating a node of type CompilationUnit . |
int | CONDITIONAL_EXPRESSION Node type constant indicating a node of type ConditionalExpression . |
int | CONSTRUCTOR_INVOCATION Node type constant indicating a node of type ConstructorInvocation . |
int | CONTINUE_STATEMENT Node type constant indicating a node of type ContinueStatement . |
int | DO_STATEMENT Node type constant indicating a node of type DoStatement . |
int | EMPTY_STATEMENT Node type constant indicating a node of type EmptyStatement . |
int | EXPRESSION_STATEMENT Node type constant indicating a node of type ExpressionStatement . |
int | FIELD_ACCESS Node type constant indicating a node of type FieldAccess . |
int | FIELD_DECLARATION Node type constant indicating a node of type FieldDeclaration . |
int | FOR_STATEMENT Node type constant indicating a node of type ForStatement . |
int | IF_STATEMENT Node type constant indicating a node of type IfStatement . |
int | IMPORT_DECLARATION Node type constant indicating a node of type ImportDeclaration . |
int | INFIX_EXPRESSION Node type constant indicating a node of type InfixExpression . |
int | INITIALIZER Node type constant indicating a node of type Initializer . |
int | JAVADOC Node type constant indicating a node of type Javadoc . |
int | LABELED_STATEMENT Node type constant indicating a node of type LabeledStatement . |
int | METHOD_DECLARATION Node type constant indicating a node of type MethodDeclaration . |
int | METHOD_INVOCATION Node type constant indicating a node of type MethodInvocation . |
int | NULL_LITERAL Node type constant indicating a node of type NullLiteral . |
int | NUMBER_LITERAL Node type constant indicating a node of type NumberLiteral . |
int | PACKAGE_DECLARATION Node type constant indicating a node of type PackageDeclaration . |
int | PARENTHESIZED_EXPRESSION Node type constant indicating a node of type ParenthesizedExpression . |
int | POSTFIX_EXPRESSION Node type constant indicating a node of type PostfixExpression . |
int | PREFIX_EXPRESSION Node type constant indicating a node of type PrefixExpression . |
int | PRIMITIVE_TYPE Node type constant indicating a node of type PrimitiveType . |
int | QUALIFIED_NAME Node type constant indicating a node of type QualifiedName . |
int | RETURN_STATEMENT Node type constant indicating a node of type ReturnStatement . |
int | SIMPLE_NAME Node type constant indicating a node of type SimpleName . |
int | SIMPLE_TYPE Node type constant indicating a node of type SimpleType . |
int | SINGLE_VARIABLE_DECLARATION Node type constant indicating a node of type SingleVariableDeclaration . |
int | STRING_LITERAL Node type constant indicating a node of type StringLiteral . |
int | SUPER_CONSTRUCTOR_INVOCATION Node type constant indicating a node of type SuperConstructorInvocation . |
int | SUPER_FIELD_ACCESS Node type constant indicating a node of type SuperFieldAccess . |
int | SUPER_METHOD_INVOCATION Node type constant indicating a node of type SuperMethodInvocation . |
int | SWITCH_CASE Node type constant indicating a node of type SwitchCase . |
int | SWITCH_STATEMENT Node type constant indicating a node of type SwitchStatement . |
int | SYNCHRONIZED_STATEMENT Node type constant indicating a node of type SynchronizedStatement . |
int | THIS_EXPRESSION Node type constant indicating a node of type ThisExpression . |
int | THROW_STATEMENT Node type constant indicating a node of type ThrowStatement . |
int | TRY_STATEMENT Node type constant indicating a node of type TryStatement . |
int | TYPE_DECLARATION Node type constant indicating a node of type TypeDeclaration . |
int | TYPE_DECLARATION_STATEMENT Node type constant indicating a node of type TypeDeclarationStatement . |
int | TYPE_LITERAL Node type constant indicating a node of type TypeLiteral . |
int | VARIABLE_DECLARATION_EXPRESSION Node type constant indicating a node of type VariableDeclarationExpression . |
int | VARIABLE_DECLARATION_FRAGMENT Node type constant indicating a node of type VariableDeclarationFragment . |
int | VARIABLE_DECLARATION_STATEMENT Node type constant indicating a node of type VariableDeclarationStatement . |
int | WHILE_STATEMENT Node type constant indicating a node of type WhileStatement . |
int | INSTANCEOF_EXPRESSION Node type constant indicating a node of type InstanceofExpression . |
int | LINE_COMMENT Node type constant indicating a node of type LineComment . |
int | BLOCK_COMMENT Node type constant indicating a node of type BlockComment . |
int | TAG_ELEMENT Node type constant indicating a node of type TagElement . |
int | TEXT_ELEMENT Node type constant indicating a node of type TextElement . |
int | MEMBER_REF Node type constant indicating a node of type MemberRef . |
int | METHOD_REF Node type constant indicating a node of type MethodRef . |
int | METHOD_REF_PARAMETER Node type constant indicating a node of type MethodRefParameter . |
int | ENHANCED_FOR_STATEMENT Node type constant indicating a node of type EnhancedForStatement . |
int | ENUM_DECLARATION Node type constant indicating a node of type EnumDeclaration . |
int | ENUM_CONSTANT_DECLARATION Node type constant indicating a node of type EnumConstantDeclaration . |
int | TYPE_PARAMETER Node type constant indicating a node of type TypeParameter . |
int | PARAMETERIZED_TYPE Node type constant indicating a node of type ParameterizedType . |
int | QUALIFIED_TYPE Node type constant indicating a node of type QualifiedType . |
int | WILDCARD_TYPE Node type constant indicating a node of type WildcardType . |
int | NORMAL_ANNOTATION Node type constant indicating a node of type NormalAnnotation . |
int | MARKER_ANNOTATION Node type constant indicating a node of type MarkerAnnotation . |
int | SINGLE_MEMBER_ANNOTATION Node type constant indicating a node of type SingleMemberAnnotation . |
int | MEMBER_VALUE_PAIR Node type constant indicating a node of type MemberValuePair . |
int | ANNOTATION_TYPE_DECLARATION Node type constant indicating a node of type AnnotationTypeDeclaration . |
int | ANNOTATION_TYPE_MEMBER_DECLARATION Node type constant indicating a node of type AnnotationTypeMemberDeclaration . |
int | MODIFIER Node type constant indicating a node of type Modifier . |
int | UNION_TYPE Node type constant indicating a node of type UnionType . |
int | DIMENSION Node type constant indicating a node of type Dimension . |
int | LAMBDA_EXPRESSION Node type constant indicating a node of type LambdaExpression . |
int | INTERSECTION_TYPE Node type constant indicating a node of type IntersectionType . |
int | NAME_QUALIFIED_TYPE Node type constant indicating a node of type NameQualifiedType . |
int | CREATION_REFERENCE Node type constant indicating a node of type CreationReference . |
int | EXPRESSION_METHOD_REFERENCE Node type constant indicating a node of type ExpressionMethodReference . |
int | SUPER_METHOD_REFERENCE Node type constant indicating a node of type SuperMethhodReference . |
int | TYPE_METHOD_REFERENCE Node type constant indicating a node of type TypeMethodReference . |
int | MALFORMED Flag constant (bit mask, value 1) indicating that there is something not quite right with this AST node. |
int | ORIGINAL Flag constant (bit mask, value 2) indicating that this is a node that was created by the parser (as opposed to one created by another party). |
int | PROTECT Flag constant (bit mask, value 4) indicating that this node is unmodifiable. |
int | RECOVERED Flag constant (bit mask, value 8) indicating that this node or a part of this node is recovered from source that contains a syntax error detected in the vicinity. |
void | accept(ASTVisitor visitor) Accepts the given visitor on a visit of the current node. |
ASTNode | copySubtree(AST target, ASTNode node) Returns a deep copy of the subtree of AST nodes rooted at the given node. |
List | copySubtrees(AST target, List nodes) Returns a deep copy of the subtrees of AST nodes rooted at the given list of nodes. |
void | delete() Removes this node from its parent. |
boolean | equals(Object obj) The ASTNode implementation of this Object method uses object identity (==). |
AST | getAST() Returns this node's AST. |
int | getFlags() Returns the flags associated with this node. |
int | getLength() Returns the length in characters of the original source file indicating where the source fragment corresponding to this node ends. |
StructuralPropertyDescriptor | getLocationInParent() Returns the location of this node within its parent, or null if this is a root node. |
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. |
ASTNode | getRoot() Returns the root node at or above this node; returns this node if it is a root. |
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. |
Class | nodeClassForType(int nodeType) Returns the node class for the corresponding node type. |
Map | properties() Returns an unmodifiable table of the properties of this node with non- null values. |
void | setFlags(int flags) Sets the flags associated with this node to the given value. |
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 | setStructuralProperty(StructuralPropertyDescriptor property, Object value) Sets the value of the given structural property for this node. |
List | structuralPropertiesForType() Returns a list of structural property descriptors for nodes of the same type as this node. |
boolean | subtreeMatch(ASTMatcher matcher, Object other) Returns whether the subtree rooted at the given node matches the given other object as decided by the given matcher. |
String | toString() Returns a string representation of this node suitable for debugging purposes only. |