Uses of Class
org.eclipse.jdt.core.dom.ASTNode

Packages that use ASTNode
org.eclipse.jdt.core.dom   
org.eclipse.jdt.core.dom.rewrite   
org.eclipse.jdt.internal.core   
org.eclipse.jdt.internal.core.dom.rewrite   
org.eclipse.jdt.internal.core.util   
 

Uses of ASTNode in org.eclipse.jdt.core.dom
 

Subclasses of ASTNode in org.eclipse.jdt.core.dom
 class AbstractTypeDeclaration
          Abstract subclass for type declaration, enum declaration, and annotation type declaration AST node types.
 class Annotation
          Abstract base class of AST nodes that represent annotations.
 class AnnotationTypeDeclaration
          Annotation type declaration AST node type (added in JLS3 API).
 class AnnotationTypeMemberDeclaration
          Annotation type member declaration AST node type (added in JLS3 API).
 class AnonymousClassDeclaration
          Anonymous class declaration AST node type.
 class ArrayAccess
          Array access expression AST node type.
 class ArrayCreation
          Array creation expression AST node type.
 class ArrayInitializer
          Array initializer AST node type.
 class ArrayType
          Type node for an array type.
 class AssertStatement
          Assert statement AST node type.
 class Assignment
          Assignment expression AST node type.
 class Block
          Block statement AST node type.
 class BlockComment
          Block comment AST node type.
 class BodyDeclaration
          Abstract base class of all AST nodes that represent body declarations that may appear in the body of some kind of class or interface declaration, including anonymous class declarations, enumeration declarations, and enumeration constant declarations.
 class BooleanLiteral
          Boolean literal node.
 class BreakStatement
          Break statement AST node type.
 class CastExpression
          Cast expression AST node type.
 class CatchClause
          Catch clause AST node type.
 class CharacterLiteral
          Character literal nodes.
 class ClassInstanceCreation
          Class instance creation expression AST node type.
 class Comment
          Abstract base class for all AST nodes that represent comments.
 class CompilationUnit
          Java compilation unit AST node type.
 class ConditionalExpression
          Conditional expression AST node type.
 class ConstructorInvocation
          Alternate constructor invocation statement AST node type.
 class ContinueStatement
          Continue statement AST node type.
 class DoStatement
          Do statement AST node type.
 class EmptyStatement
          Null statement AST node type.
 class EnhancedForStatement
          Enhanced For statement AST node type (added in JLS3 API).
 class EnumConstantDeclaration
          Enumeration constant declaration AST node type (added in JLS3 API).
 class EnumDeclaration
          Enum declaration AST node type (added in JLS3 API).
 class Expression
          Abstract base class of AST nodes that represent expressions.
 class ExpressionStatement
          Expression statement AST node type.
 class FieldAccess
          Field access expression AST node type.
 class FieldDeclaration
          Field declaration node type.
 class ForStatement
          For statement AST node type.
 class IfStatement
          If statement AST node type.
 class ImportDeclaration
          Import declaration AST node type.
 class InfixExpression
          Infix expression AST node type.
 class Initializer
          Static or instance initializer AST node type.
 class InstanceofExpression
          Instanceof expression AST node type.
 class Javadoc
          AST node for a Javadoc-style doc comment.
 class LabeledStatement
          Labeled statement AST node type.
 class LineComment
          End-of-line comment AST node type.
 class MarkerAnnotation
          Marker annotation node (added in JLS3 API).
 class MemberRef
          AST node for a member reference within a doc comment (Javadoc).
 class MemberValuePair
          Member value pair node (added in JLS3 API).
 class MethodDeclaration
          Method declaration AST node type.
 class MethodInvocation
          Method invocation expression AST node type.
 class MethodRef
          AST node for a method or constructor reference within a doc comment (Javadoc).
 class MethodRefParameter
          AST node for a parameter within a method reference (MethodRef).
 class Modifier
          Modifier node.
 class Name
          Abstract base class for all AST nodes that represent names.
 class NormalAnnotation
          Normal annotation node (added in JLS3 API).
 class NullLiteral
          Null literal node.
 class NumberLiteral
          Number literal nodes.
 class PackageDeclaration
          Package declaration AST node type.
 class ParameterizedType
          Type node for a parameterized type (added in JLS3 API).
 class ParenthesizedExpression
          Parenthesized expression AST node type.
 class PostfixExpression
          Postfix expression AST node type.
 class PrefixExpression
          Prefix expression AST node type.
 class PrimitiveType
          Primitive type nodes.
 class QualifiedName
          AST node for a qualified name.
 class QualifiedType
          Type node for a qualified type (added in JLS3 API).
 class ReturnStatement
          Return statement AST node type.
 class SimpleName
          AST node for a simple name.
 class SimpleType
          Type node for a named class type, a named interface type, or a type variable.
 class SingleMemberAnnotation
          Single member annotation node (added in JLS3 API).
 class SingleVariableDeclaration
          Single variable declaration AST node type.
 class Statement
          Abstract base class of AST nodes that represent statements.
 class StringLiteral
          String literal nodes.
 class SuperConstructorInvocation
          Super constructor invocation statement AST node type.
 class SuperFieldAccess
          Simple or qualified "super" field access expression AST node type.
 class SuperMethodInvocation
          Simple or qualified "super" method invocation expression AST node type.
 class SwitchCase
          Switch case AST node type.
 class SwitchStatement
          Switch statement AST node type.
 class SynchronizedStatement
          Synchronized statement AST node type.
 class TagElement
          AST node for a tag within a doc comment.
 class TextElement
          AST node for a text element within a doc comment.
 class ThisExpression
          Simple or qualified "this" AST node type.
 class ThrowStatement
          Throw statement AST node type.
 class TryStatement
          Try statement AST node type.
 class Type
          Abstract base class of all type AST node types.
 class TypeDeclaration
          Type declaration AST node type.
 class TypeDeclarationStatement
          Local type declaration statement AST node type.
 class TypeLiteral
          Type literal AST node type.
 class TypeParameter
          Type parameter node (added in JLS3 API).
 class UnionType
          Type node for an union type (added in JLS4 API).
 class VariableDeclaration
          Abstract base class of all AST node types that declare a single local variable.
 class VariableDeclarationExpression
          Local variable declaration expression AST node type.
 class VariableDeclarationFragment
          Variable declaration fragment AST node type, used in field declarations, local variable declarations, and ForStatement initializers.
 class VariableDeclarationStatement
          Local variable declaration statement AST node type.
 class WhileStatement
          While statement AST node type.
 class WildcardType
          Type node for a wildcard type (added in JLS3 API).
 

Methods in org.eclipse.jdt.core.dom that return ASTNode
static ASTNode ASTNode.copySubtree(AST target, ASTNode node)
          Returns a deep copy of the subtree of AST nodes rooted at the given node.
 ASTNode ASTParser.createAST(IProgressMonitor monitor)
          Creates an abstract syntax tree.
 ASTNode AST.createInstance(java.lang.Class nodeClass)
          Creates an unparented node of the given node class (non-abstract subclass of ASTNode).
 ASTNode AST.createInstance(int nodeType)
          Creates an unparented node of the given node type.
 ASTNode CompilationUnit.findDeclaringNode(IBinding binding)
          Finds the corresponding AST node in the given compilation unit from which the given binding originated.
 ASTNode CompilationUnit.findDeclaringNode(java.lang.String key)
          Finds the corresponding AST node in the given compilation unit from which the binding with the given key originated.
 ASTNode Comment.getAlternateRoot()
          Returns the root AST node that this comment occurs within, or null if none (or not recorded).
 ASTNode NodeFinder.getCoveredNode()
          Returns the covered node.
 ASTNode NodeFinder.getCoveringNode()
          Returns the covering node.
 ASTNode ASTNode.getParent()
          Returns this node's parent node, or null if this is the root node.
 ASTNode ASTNode.getRoot()
          Returns the root node at or above this node; returns this node if it is a root.
static ASTNode NodeFinder.perform(ASTNode root, int start, int length)
          Maps a selection to a given ASTNode, where the selection is defined using a start and a length.
static ASTNode NodeFinder.perform(ASTNode root, int start, int length, ITypeRoot source)
          Maps a selection to a given ASTNode, where the selection is given by a start and a length.
static ASTNode NodeFinder.perform(ASTNode root, ISourceRange range)
          Maps a selection to a given ASTNode, where the selection is defined using a source range.
 

Methods in org.eclipse.jdt.core.dom with parameters of type ASTNode
static ASTNode ASTNode.copySubtree(AST target, ASTNode node)
          Returns a deep copy of the subtree of AST nodes rooted at the given node.
 int CompilationUnit.firstLeadingCommentIndex(ASTNode node)
          Return the index in the whole comments list CompilationUnit.getCommentList() of the first leading comments associated with the given node.
 int CompilationUnit.getExtendedLength(ASTNode node)
          Returns the extended source length of the given node.
 int CompilationUnit.getExtendedStartPosition(ASTNode node)
          Returns the extended start position of the given node.
 int CompilationUnit.lastTrailingCommentIndex(ASTNode node)
          Return the index in the whole comments list CompilationUnit.getCommentList() of the last trailing comments associated with the given node.
static ASTNode NodeFinder.perform(ASTNode root, int start, int length)
          Maps a selection to a given ASTNode, where the selection is defined using a start and a length.
static ASTNode NodeFinder.perform(ASTNode root, int start, int length, ITypeRoot source)
          Maps a selection to a given ASTNode, where the selection is given by a start and a length.
static ASTNode NodeFinder.perform(ASTNode root, ISourceRange range)
          Maps a selection to a given ASTNode, where the selection is defined using a source range.
 void ASTVisitor.postVisit(ASTNode node)
          Visits the given AST node following the type-specific visit (after endVisit).
 void ASTVisitor.preVisit(ASTNode node)
          Visits the given AST node prior to the type-specific visit (before visit).
 boolean ASTVisitor.preVisit2(ASTNode node)
          Visits the given AST node prior to the type-specific visit (before visit).
 void Comment.setAlternateRoot(ASTNode root)
          Returns the root AST node that this comment occurs within, or null if none (or not recorded).
 

Constructors in org.eclipse.jdt.core.dom with parameters of type ASTNode
NodeFinder(ASTNode root, int start, int length)
          Instantiate a new node finder using the given root node, the given start and the given length.
 

Uses of ASTNode in org.eclipse.jdt.core.dom.rewrite
 

Methods in org.eclipse.jdt.core.dom.rewrite that return ASTNode
 ASTNode ASTRewrite.createCopyTarget(ASTNode node)
          Creates and returns a placeholder node for a true copy of the given node.
 ASTNode ListRewrite.createCopyTarget(ASTNode first, ASTNode last)
          Creates and returns a placeholder node for a true copy of a range of nodes of the current list.
 ASTNode ASTRewrite.createGroupNode(ASTNode[] targetNodes)
          Creates and returns a node that represents a sequence of nodes.
 ASTNode ASTRewrite.createMoveTarget(ASTNode node)
          Creates and returns a placeholder node for the new locations of the given node.
 ASTNode ListRewrite.createMoveTarget(ASTNode first, ASTNode last)
          Creates and returns a placeholder node for a move of a range of nodes of the current list.
 ASTNode ListRewrite.createMoveTarget(ASTNode first, ASTNode last, ASTNode replacingNode, TextEditGroup editGroup)
          Creates and returns a placeholder node for a move of a range of nodes of the current list.
 ASTNode ASTRewrite.createStringPlaceholder(java.lang.String code, int nodeType)
          Creates and returns a placeholder node for a source string that is to be inserted into the output document at the position corresponding to the placeholder.
 ASTNode ListRewrite.getParent()
          Returns the parent of the list for which this list rewriter was created.
 

Methods in org.eclipse.jdt.core.dom.rewrite with parameters of type ASTNode
 TargetSourceRangeComputer.SourceRange TargetSourceRangeComputer.computeSourceRange(ASTNode node)
          Returns the target source range of the given node.
 ASTNode ASTRewrite.createCopyTarget(ASTNode node)
          Creates and returns a placeholder node for a true copy of the given node.
 ASTNode ListRewrite.createCopyTarget(ASTNode first, ASTNode last)
          Creates and returns a placeholder node for a true copy of a range of nodes of the current list.
 ASTNode ASTRewrite.createGroupNode(ASTNode[] targetNodes)
          Creates and returns a node that represents a sequence of nodes.
 ASTNode ASTRewrite.createMoveTarget(ASTNode node)
          Creates and returns a placeholder node for the new locations of the given node.
 ASTNode ListRewrite.createMoveTarget(ASTNode first, ASTNode last)
          Creates and returns a placeholder node for a move of a range of nodes of the current list.
 ASTNode ListRewrite.createMoveTarget(ASTNode first, ASTNode last, ASTNode replacingNode, TextEditGroup editGroup)
          Creates and returns a placeholder node for a move of a range of nodes of the current list.
 java.lang.Object ASTRewrite.get(ASTNode node, StructuralPropertyDescriptor property)
          Returns the value of the given property as managed by this rewriter.
 ListRewrite ASTRewrite.getListRewrite(ASTNode node, ChildListPropertyDescriptor property)
          Creates and returns a new rewriter for describing modifications to the given list property of the given node.
 void ListRewrite.insertAfter(ASTNode node, ASTNode previousElement, TextEditGroup editGroup)
          Inserts the given node into the list after the given element.
 void ListRewrite.insertAt(ASTNode node, int index, TextEditGroup editGroup)
          Inserts the given node into the list at the given index.
 void ListRewrite.insertBefore(ASTNode node, ASTNode nextElement, TextEditGroup editGroup)
          Inserts the given node into the list before the given element.
 void ListRewrite.insertFirst(ASTNode node, TextEditGroup editGroup)
          Inserts the given node into the list at the start of the list.
 void ListRewrite.insertLast(ASTNode node, TextEditGroup editGroup)
          Inserts the given node into the list at the end of the list.
 void ListRewrite.remove(ASTNode node, TextEditGroup editGroup)
          Removes the given node from its parent's list property in the rewriter.
 void ASTRewrite.remove(ASTNode node, TextEditGroup editGroup)
          Removes the given node from its parent in this rewriter.
 void ListRewrite.replace(ASTNode node, ASTNode replacement, TextEditGroup editGroup)
          Replaces the given node from its parent's list property in the rewriter.
 void ASTRewrite.replace(ASTNode node, ASTNode replacement, TextEditGroup editGroup)
          Replaces the given node in this rewriter.
 void ASTRewrite.set(ASTNode node, StructuralPropertyDescriptor property, java.lang.Object value, TextEditGroup editGroup)
          Sets the given property of the given node.
 ITrackedNodePosition ASTRewrite.track(ASTNode node)
          Returns an object that tracks the source range of the given node across the rewrite to its AST.
 

Uses of ASTNode in org.eclipse.jdt.internal.core
 

Fields in org.eclipse.jdt.internal.core declared as ASTNode
protected  ASTNode CreateTypeMemberOperation.createdNode
          The AST node representing the element that this operation created.
 

Methods in org.eclipse.jdt.internal.core that return ASTNode
 ASTNode SourceField.findNode(CompilationUnit ast)
           
 ASTNode SourceRefElement.findNode(CompilationUnit ast)
          Returns the ASTNode that corresponds to this JavaElement or null if there is no corresponding node.
 ASTNode JavaElement.findNode(CompilationUnit ast)
          Returns the ASTNode that corresponds to this JavaElement or null if there is no corresponding node.
protected  ASTNode CreateTypeOperation.generateElementAST(ASTRewrite rewriter, ICompilationUnit cu)
           
protected  ASTNode CreateFieldOperation.generateElementAST(ASTRewrite rewriter, ICompilationUnit cu)
           
protected  ASTNode CreateImportOperation.generateElementAST(ASTRewrite rewriter, ICompilationUnit cu)
           
protected  ASTNode CreateInitializerOperation.generateElementAST(ASTRewrite rewriter, ICompilationUnit cu)
           
protected  ASTNode CreateMethodOperation.generateElementAST(ASTRewrite rewriter, ICompilationUnit cu)
           
protected  ASTNode CreateTypeMemberOperation.generateElementAST(ASTRewrite rewriter, ICompilationUnit cu)
           
protected abstract  ASTNode CreateElementInCUOperation.generateElementAST(ASTRewrite rewriter, ICompilationUnit cu)
           
protected  ASTNode CreatePackageDeclarationOperation.generateElementAST(ASTRewrite rewriter, ICompilationUnit cu)
           
 

Methods in org.eclipse.jdt.internal.core with parameters of type ASTNode
protected  StructuralPropertyDescriptor CreateImportOperation.getChildPropertyDescriptor(ASTNode parent)
           
protected  StructuralPropertyDescriptor CreateTypeMemberOperation.getChildPropertyDescriptor(ASTNode parent)
           
protected abstract  StructuralPropertyDescriptor CreateElementInCUOperation.getChildPropertyDescriptor(ASTNode parent)
           
protected  StructuralPropertyDescriptor CreatePackageDeclarationOperation.getChildPropertyDescriptor(ASTNode parent)
           
protected  void CreateElementInCUOperation.insertASTNode(ASTRewrite rewriter, ASTNode parent, ASTNode child)
          Inserts the given child into the given AST, based on the position settings of this operation.
protected  boolean SortElementsOperation.isMalformed(ASTNode node)
           
protected  SimpleName CreateTypeOperation.rename(ASTNode node, SimpleName newName)
           
protected  SimpleName CreateFieldOperation.rename(ASTNode node, SimpleName newName)
           
protected  SimpleName CreateInitializerOperation.rename(ASTNode node, SimpleName newName)
           
protected  SimpleName CreateMethodOperation.rename(ASTNode node, SimpleName newName)
           
protected abstract  SimpleName CreateTypeMemberOperation.rename(ASTNode node, SimpleName newName)
           
 

Uses of ASTNode in org.eclipse.jdt.internal.core.dom.rewrite
 

Methods in org.eclipse.jdt.internal.core.dom.rewrite that return ASTNode
protected  ASTNode ASTRewriteFlattener.getChildNode(ASTNode parent, StructuralPropertyDescriptor childProperty)
           
 ASTNode RewriteEventStore.CopySourceInfo.getNode()
           
 ASTNode RewriteEventStore.PropertyLocation.getParent()
           
 ASTNode NodeInfoStore.newPlaceholderNode(int nodeType)
          Creates a placeholder node of the given type.
 

Methods in org.eclipse.jdt.internal.core.dom.rewrite with parameters of type ASTNode
 void RewriteEventStore.addEvent(ASTNode parent, StructuralPropertyDescriptor childProperty, RewriteEvent event)
           
static java.lang.String ASTRewriteFlattener.asString(ASTNode node, RewriteEventStore store)
           
 RewriteEventStore.CopySourceInfo RewriteEventStore.createRangeCopy(ASTNode parent, StructuralPropertyDescriptor childProperty, ASTNode first, ASTNode last, boolean isMove, ASTNode internalPlaceholder, ASTNode replacingNode, TextEditGroup editGroup)
           
 void ASTRewriteAnalyzer.ensureSpaceAfterReplace(ASTNode node, ChildPropertyDescriptor desc)
           
 void ASTRewriteAnalyzer.ensureSpaceBeforeReplace(ASTNode node)
           
protected  java.lang.Object ASTRewriteFlattener.getAttribute(ASTNode parent, StructuralPropertyDescriptor childProperty)
           
protected  boolean ASTRewriteFlattener.getBooleanAttribute(ASTNode parent, StructuralPropertyDescriptor childProperty)
           
 java.util.List RewriteEventStore.getChangedPropertieEvents(ASTNode parent)
           
 int RewriteEventStore.getChangeKind(ASTNode node)
           
protected  java.util.List ASTRewriteFlattener.getChildList(ASTNode parent, StructuralPropertyDescriptor childProperty)
           
protected  ASTNode ASTRewriteFlattener.getChildNode(ASTNode parent, StructuralPropertyDescriptor childProperty)
           
 RewriteEvent RewriteEventStore.getEvent(ASTNode parent, StructuralPropertyDescriptor property)
           
 int ListRewriteEvent.getIndex(ASTNode node, int kind)
           
protected  int ASTRewriteFlattener.getIntAttribute(ASTNode parent, StructuralPropertyDescriptor childProperty)
           
 ListRewriteEvent RewriteEventStore.getListEvent(ASTNode parent, StructuralPropertyDescriptor childProperty, boolean forceCreation)
           
 java.lang.Object RewriteEventStore.getNewValue(ASTNode parent, StructuralPropertyDescriptor property)
           
 RewriteEventStore.CopySourceInfo[] RewriteEventStore.getNodeCopySources(ASTNode node)
           
 NodeRewriteEvent RewriteEventStore.getNodeEvent(ASTNode parent, StructuralPropertyDescriptor childProperty, boolean forceCreation)
           
 java.lang.Object RewriteEventStore.getOriginalValue(ASTNode parent, StructuralPropertyDescriptor property)
           
 java.lang.Object RewriteEventStore.INodePropertyMapper.getOriginalValue(ASTNode parent, StructuralPropertyDescriptor childProperty)
          Returns the node attribute for a given property name.
 java.lang.Object NodeInfoStore.getPlaceholderData(ASTNode node)
           
 TextEditGroup RewriteEventStore.getTrackedNodeData(ASTNode node)
           
 boolean RewriteEventStore.hasChangedProperties(ASTNode parent)
           
 RewriteEvent ListRewriteEvent.insert(ASTNode insertedNode, int insertIndex)
           
 RewriteEventStore.CopySourceInfo[] RewriteEventStore.internalGetCopySources(java.util.List copySources, ASTNode node)
           
 boolean NodeInfoStore.isCollapsed(ASTNode node)
           
 boolean RewriteEventStore.isInsertBoundToPrevious(ASTNode node)
           
static boolean RewriteEventStore.isNewNode(ASTNode node)
           
 boolean RewriteEventStore.isRangeCopyPlaceholder(ASTNode node)
           
 RewriteEventStore.CopySourceInfo RewriteEventStore.markAsCopySource(ASTNode parent, StructuralPropertyDescriptor property, ASTNode node, boolean isMove)
           
 void NodeInfoStore.markAsCopyTarget(ASTNode target, RewriteEventStore.CopySourceInfo copySource)
          Marks a node as a copy or move target.
 void NodeInfoStore.markAsStringPlaceholder(ASTNode placeholder, java.lang.String code)
          Marks a node as a placehoder for a plain string content.
 void RewriteEventStore.markAsTracked(ASTNode node, TextEditGroup editGroup)
          Marks a node as tracked.
 void ASTRewriteAnalyzer.postVisit(ASTNode node)
           
 void ASTRewriteAnalyzer.preVisit(ASTNode node)
           
 RewriteEvent ListRewriteEvent.removeEntry(ASTNode originalEntry)
           
 RewriteEvent ListRewriteEvent.replaceEntry(ASTNode entry, ASTNode newEntry)
           
 void RewriteEventStore.setInsertBoundToPrevious(ASTNode node)
           
 void ListRewriteEvent.setNewValue(ASTNode newValue, int insertIndex)
           
 void RewriteEventStore.setTrackedNodeData(ASTNode node, TextEditGroup editGroup)
           
protected  void ASTRewriteFlattener.visitList(ASTNode parent, StructuralPropertyDescriptor childProperty, java.lang.String separator)
           
protected  void ASTRewriteFlattener.visitList(ASTNode parent, StructuralPropertyDescriptor childProperty, java.lang.String separator, java.lang.String lead, java.lang.String post)
           
 

Constructors in org.eclipse.jdt.internal.core.dom.rewrite with parameters of type ASTNode
RewriteEventStore.CopySourceInfo(RewriteEventStore.PropertyLocation location, ASTNode node, boolean isMove)
           
RewriteEventStore.PropertyLocation(ASTNode parent, StructuralPropertyDescriptor property)
           
TrackedNodePosition(TextEditGroup group, ASTNode node)
           
 

Uses of ASTNode in org.eclipse.jdt.internal.core.util
 

Fields in org.eclipse.jdt.internal.core.util declared as ASTNode
 ASTNode DOMFinder.foundNode
           
 

Methods in org.eclipse.jdt.internal.core.util that return ASTNode
 ASTNode DOMFinder.search()
           
 

Methods in org.eclipse.jdt.internal.core.util with parameters of type ASTNode
protected  boolean DOMFinder.found(ASTNode node, ASTNode name)