Java org.eclipse.jdt.core.dom ASTNode fields, constructors, methods, implement or subclass

Example usage for Java org.eclipse.jdt.core.dom ASTNode fields, constructors, methods, implement or subclass

Introduction

In this page you can find the methods, fields and constructors for org.eclipse.jdt.core.dom ASTNode.

The text is from its open source code.

Field

intANONYMOUS_CLASS_DECLARATION
Node type constant indicating a node of type AnonymousClassDeclaration.
intARRAY_ACCESS
Node type constant indicating a node of type ArrayAccess.
intARRAY_CREATION
Node type constant indicating a node of type ArrayCreation.
intARRAY_INITIALIZER
Node type constant indicating a node of type ArrayInitializer.
intARRAY_TYPE
Node type constant indicating a node of type ArrayType.
intASSERT_STATEMENT
Node type constant indicating a node of type AssertStatement.
intASSIGNMENT
Node type constant indicating a node of type Assignment.
intBLOCK
Node type constant indicating a node of type Block.
intBOOLEAN_LITERAL
Node type constant indicating a node of type BooleanLiteral.
intBREAK_STATEMENT
Node type constant indicating a node of type BreakStatement.
intCAST_EXPRESSION
Node type constant indicating a node of type CastExpression.
intCATCH_CLAUSE
Node type constant indicating a node of type CatchClause.
intCHARACTER_LITERAL
Node type constant indicating a node of type CharacterLiteral.
intCLASS_INSTANCE_CREATION
Node type constant indicating a node of type ClassInstanceCreation.
intCOMPILATION_UNIT
Node type constant indicating a node of type CompilationUnit.
intCONDITIONAL_EXPRESSION
Node type constant indicating a node of type ConditionalExpression.
intCONSTRUCTOR_INVOCATION
Node type constant indicating a node of type ConstructorInvocation.
intCONTINUE_STATEMENT
Node type constant indicating a node of type ContinueStatement.
intDO_STATEMENT
Node type constant indicating a node of type DoStatement.
intEMPTY_STATEMENT
Node type constant indicating a node of type EmptyStatement.
intEXPRESSION_STATEMENT
Node type constant indicating a node of type ExpressionStatement.
intFIELD_ACCESS
Node type constant indicating a node of type FieldAccess.
intFIELD_DECLARATION
Node type constant indicating a node of type FieldDeclaration.
intFOR_STATEMENT
Node type constant indicating a node of type ForStatement.
intIF_STATEMENT
Node type constant indicating a node of type IfStatement.
intIMPORT_DECLARATION
Node type constant indicating a node of type ImportDeclaration.
intINFIX_EXPRESSION
Node type constant indicating a node of type InfixExpression.
intINITIALIZER
Node type constant indicating a node of type Initializer.
intJAVADOC
Node type constant indicating a node of type Javadoc.
intLABELED_STATEMENT
Node type constant indicating a node of type LabeledStatement.
intMETHOD_DECLARATION
Node type constant indicating a node of type MethodDeclaration.
intMETHOD_INVOCATION
Node type constant indicating a node of type MethodInvocation.
intNULL_LITERAL
Node type constant indicating a node of type NullLiteral.
intNUMBER_LITERAL
Node type constant indicating a node of type NumberLiteral.
intPACKAGE_DECLARATION
Node type constant indicating a node of type PackageDeclaration.
intPARENTHESIZED_EXPRESSION
Node type constant indicating a node of type ParenthesizedExpression.
intPOSTFIX_EXPRESSION
Node type constant indicating a node of type PostfixExpression.
intPREFIX_EXPRESSION
Node type constant indicating a node of type PrefixExpression.
intPRIMITIVE_TYPE
Node type constant indicating a node of type PrimitiveType.
intQUALIFIED_NAME
Node type constant indicating a node of type QualifiedName.
intRETURN_STATEMENT
Node type constant indicating a node of type ReturnStatement.
intSIMPLE_NAME
Node type constant indicating a node of type SimpleName.
intSIMPLE_TYPE
Node type constant indicating a node of type SimpleType.
intSINGLE_VARIABLE_DECLARATION
Node type constant indicating a node of type SingleVariableDeclaration.
intSTRING_LITERAL
Node type constant indicating a node of type StringLiteral.
intSUPER_CONSTRUCTOR_INVOCATION
Node type constant indicating a node of type SuperConstructorInvocation.
intSUPER_FIELD_ACCESS
Node type constant indicating a node of type SuperFieldAccess.
intSUPER_METHOD_INVOCATION
Node type constant indicating a node of type SuperMethodInvocation.
intSWITCH_CASE
Node type constant indicating a node of type SwitchCase.
intSWITCH_STATEMENT
Node type constant indicating a node of type SwitchStatement.
intSYNCHRONIZED_STATEMENT
Node type constant indicating a node of type SynchronizedStatement.
intTHIS_EXPRESSION
Node type constant indicating a node of type ThisExpression.
intTHROW_STATEMENT
Node type constant indicating a node of type ThrowStatement.
intTRY_STATEMENT
Node type constant indicating a node of type TryStatement.
intTYPE_DECLARATION
Node type constant indicating a node of type TypeDeclaration.
intTYPE_DECLARATION_STATEMENT
Node type constant indicating a node of type TypeDeclarationStatement.
intTYPE_LITERAL
Node type constant indicating a node of type TypeLiteral.
intVARIABLE_DECLARATION_EXPRESSION
Node type constant indicating a node of type VariableDeclarationExpression.
intVARIABLE_DECLARATION_FRAGMENT
Node type constant indicating a node of type VariableDeclarationFragment.
intVARIABLE_DECLARATION_STATEMENT
Node type constant indicating a node of type VariableDeclarationStatement.
intWHILE_STATEMENT
Node type constant indicating a node of type WhileStatement.
intINSTANCEOF_EXPRESSION
Node type constant indicating a node of type InstanceofExpression.
intLINE_COMMENT
Node type constant indicating a node of type LineComment.
intBLOCK_COMMENT
Node type constant indicating a node of type BlockComment.
intTAG_ELEMENT
Node type constant indicating a node of type TagElement.
intTEXT_ELEMENT
Node type constant indicating a node of type TextElement.
intMEMBER_REF
Node type constant indicating a node of type MemberRef.
intMETHOD_REF
Node type constant indicating a node of type MethodRef.
intMETHOD_REF_PARAMETER
Node type constant indicating a node of type MethodRefParameter.
intENHANCED_FOR_STATEMENT
Node type constant indicating a node of type EnhancedForStatement.
intENUM_DECLARATION
Node type constant indicating a node of type EnumDeclaration.
intENUM_CONSTANT_DECLARATION
Node type constant indicating a node of type EnumConstantDeclaration.
intTYPE_PARAMETER
Node type constant indicating a node of type TypeParameter.
intPARAMETERIZED_TYPE
Node type constant indicating a node of type ParameterizedType.
intQUALIFIED_TYPE
Node type constant indicating a node of type QualifiedType.
intWILDCARD_TYPE
Node type constant indicating a node of type WildcardType.
intNORMAL_ANNOTATION
Node type constant indicating a node of type NormalAnnotation.
intMARKER_ANNOTATION
Node type constant indicating a node of type MarkerAnnotation.
intSINGLE_MEMBER_ANNOTATION
Node type constant indicating a node of type SingleMemberAnnotation.
intMEMBER_VALUE_PAIR
Node type constant indicating a node of type MemberValuePair.
intANNOTATION_TYPE_DECLARATION
Node type constant indicating a node of type AnnotationTypeDeclaration.
intANNOTATION_TYPE_MEMBER_DECLARATION
Node type constant indicating a node of type AnnotationTypeMemberDeclaration.
intMODIFIER
Node type constant indicating a node of type Modifier.
intUNION_TYPE
Node type constant indicating a node of type UnionType.
intDIMENSION
Node type constant indicating a node of type Dimension.
intLAMBDA_EXPRESSION
Node type constant indicating a node of type LambdaExpression.
intINTERSECTION_TYPE
Node type constant indicating a node of type IntersectionType.
intNAME_QUALIFIED_TYPE
Node type constant indicating a node of type NameQualifiedType.
intCREATION_REFERENCE
Node type constant indicating a node of type CreationReference.
intEXPRESSION_METHOD_REFERENCE
Node type constant indicating a node of type ExpressionMethodReference.
intSUPER_METHOD_REFERENCE
Node type constant indicating a node of type SuperMethhodReference.
intTYPE_METHOD_REFERENCE
Node type constant indicating a node of type TypeMethodReference.
intMALFORMED
Flag constant (bit mask, value 1) indicating that there is something not quite right with this AST node.
intORIGINAL
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).
intPROTECT
Flag constant (bit mask, value 4) indicating that this node is unmodifiable.
intRECOVERED
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.

Method

voidaccept(ASTVisitor visitor)
Accepts the given visitor on a visit of the current node.
ASTNodecopySubtree(AST target, ASTNode node)
Returns a deep copy of the subtree of AST nodes rooted at the given node.
ListcopySubtrees(AST target, List nodes)
Returns a deep copy of the subtrees of AST nodes rooted at the given list of nodes.
voiddelete()
Removes this node from its parent.
booleanequals(Object obj)
The ASTNode implementation of this Object method uses object identity (==).
ASTgetAST()
Returns this node's AST.
intgetFlags()
Returns the flags associated with this node.
intgetLength()
Returns the length in characters of the original source file indicating where the source fragment corresponding to this node ends.
StructuralPropertyDescriptorgetLocationInParent()
Returns the location of this node within its parent, or null if this is a root node.
intgetNodeType()
Returns an integer value identifying the type of this concrete AST node.
ASTNodegetParent()
Returns this node's parent node, or null if this is the root node.
ObjectgetProperty(String propertyName)
Returns the value of the named property of this node, or null if none.
ASTNodegetRoot()
Returns the root node at or above this node; returns this node if it is a root.
intgetStartPosition()
Returns the character index into the original source file indicating where the source fragment corresponding to this node begins.
ObjectgetStructuralProperty(StructuralPropertyDescriptor property)
Returns the value of the given structural property for this node.
ClassnodeClassForType(int nodeType)
Returns the node class for the corresponding node type.
Mapproperties()
Returns an unmodifiable table of the properties of this node with non-null values.
voidsetFlags(int flags)
Sets the flags associated with this node to the given value.
voidsetProperty(String propertyName, Object data)
Sets the named property of this node to the given value, or to null to clear it.
voidsetSourceRange(int startPosition, int length)
Sets the source range of the original source file where the source fragment corresponding to this node was found.
voidsetStructuralProperty(StructuralPropertyDescriptor property, Object value)
Sets the value of the given structural property for this node.
ListstructuralPropertiesForType()
Returns a list of structural property descriptors for nodes of the same type as this node.
booleansubtreeMatch(ASTMatcher matcher, Object other)
Returns whether the subtree rooted at the given node matches the given other object as decided by the given matcher.
StringtoString()
Returns a string representation of this node suitable for debugging purposes only.