org.aspectj.org.eclipse.jdt.internal.core.util
Class DOMFinder

java.lang.Object
  extended by org.aspectj.org.eclipse.jdt.core.dom.ASTVisitor
      extended by org.aspectj.org.eclipse.jdt.internal.core.util.DOMFinder

public class DOMFinder
extends ASTVisitor


Field Summary
 IBinding foundBinding
           
 ASTNode foundNode
           
 
Constructor Summary
DOMFinder(CompilationUnit ast, SourceRefElement element, boolean resolveBinding)
           
 
Method Summary
protected  boolean found(ASTNode node, ASTNode name)
           
 ASTNode search()
           
 boolean visit(AnnotationTypeDeclaration node)
          Visits the given type-specific AST node.
 boolean visit(AnnotationTypeMemberDeclaration node)
          Visits the given type-specific AST node.
 boolean visit(AnonymousClassDeclaration node)
          Visits the given type-specific AST node.
 boolean visit(EnumConstantDeclaration node)
          Visits the given type-specific AST node.
 boolean visit(EnumDeclaration node)
          Visits the given type-specific AST node.
 boolean visit(ImportDeclaration node)
          Visits the given type-specific AST node.
 boolean visit(Initializer node)
          Visits the given type-specific AST node.
 boolean visit(MarkerAnnotation node)
          Visits the given type-specific AST node.
 boolean visit(MethodDeclaration node)
          Visits the given type-specific AST node.
 boolean visit(NormalAnnotation node)
          Visits the given type-specific AST node.
 boolean visit(PackageDeclaration node)
          Visits the given type-specific AST node.
 boolean visit(SingleMemberAnnotation node)
          Visits the given type-specific AST node.
 boolean visit(TypeDeclaration node)
          Visits the given type-specific AST node.
 boolean visit(TypeParameter node)
          Visits the given type-specific AST node.
 boolean visit(VariableDeclarationFragment node)
          Visits the given type-specific AST node.
 
Methods inherited from class org.aspectj.org.eclipse.jdt.core.dom.ASTVisitor
endVisit, endVisit, endVisit, endVisit, endVisit, endVisit, endVisit, endVisit, endVisit, endVisit, endVisit, endVisit, endVisit, endVisit, endVisit, endVisit, endVisit, endVisit, endVisit, endVisit, endVisit, endVisit, endVisit, endVisit, endVisit, endVisit, endVisit, endVisit, endVisit, endVisit, endVisit, endVisit, endVisit, endVisit, endVisit, endVisit, endVisit, endVisit, endVisit, endVisit, endVisit, endVisit, endVisit, endVisit, endVisit, endVisit, endVisit, endVisit, endVisit, endVisit, endVisit, endVisit, endVisit, endVisit, endVisit, endVisit, endVisit, endVisit, endVisit, endVisit, endVisit, endVisit, endVisit, endVisit, endVisit, endVisit, endVisit, endVisit, endVisit, endVisit, endVisit, endVisit, endVisit, endVisit, endVisit, endVisit, endVisit, endVisit, endVisit, endVisit, endVisit, endVisit, endVisit, endVisit, postVisit, preVisit, preVisit2, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

foundNode

public ASTNode foundNode

foundBinding

public IBinding foundBinding
Constructor Detail

DOMFinder

public DOMFinder(CompilationUnit ast,
                 SourceRefElement element,
                 boolean resolveBinding)
Method Detail

found

protected boolean found(ASTNode node,
                        ASTNode name)

search

public ASTNode search()
               throws JavaModelException
Throws:
JavaModelException

visit

public boolean visit(AnnotationTypeDeclaration node)
Description copied from class: ASTVisitor
Visits the given type-specific AST node.

The default implementation does nothing and return true. Subclasses may reimplement.

Overrides:
visit in class ASTVisitor
Parameters:
node - the node to visit
Returns:
true if the children of this node should be visited, and false if the children of this node should be skipped

visit

public boolean visit(AnnotationTypeMemberDeclaration node)
Description copied from class: ASTVisitor
Visits the given type-specific AST node.

The default implementation does nothing and return true. Subclasses may reimplement.

Overrides:
visit in class ASTVisitor
Parameters:
node - the node to visit
Returns:
true if the children of this node should be visited, and false if the children of this node should be skipped

visit

public boolean visit(AnonymousClassDeclaration node)
Description copied from class: ASTVisitor
Visits the given type-specific AST node.

The default implementation does nothing and return true. Subclasses may reimplement.

Overrides:
visit in class ASTVisitor
Parameters:
node - the node to visit
Returns:
true if the children of this node should be visited, and false if the children of this node should be skipped

visit

public boolean visit(EnumConstantDeclaration node)
Description copied from class: ASTVisitor
Visits the given type-specific AST node.

The default implementation does nothing and return true. Subclasses may reimplement.

Overrides:
visit in class ASTVisitor
Parameters:
node - the node to visit
Returns:
true if the children of this node should be visited, and false if the children of this node should be skipped

visit

public boolean visit(EnumDeclaration node)
Description copied from class: ASTVisitor
Visits the given type-specific AST node.

The default implementation does nothing and return true. Subclasses may reimplement.

Overrides:
visit in class ASTVisitor
Parameters:
node - the node to visit
Returns:
true if the children of this node should be visited, and false if the children of this node should be skipped

visit

public boolean visit(ImportDeclaration node)
Description copied from class: ASTVisitor
Visits the given type-specific AST node.

The default implementation does nothing and return true. Subclasses may reimplement.

Overrides:
visit in class ASTVisitor
Parameters:
node - the node to visit
Returns:
true if the children of this node should be visited, and false if the children of this node should be skipped

visit

public boolean visit(Initializer node)
Description copied from class: ASTVisitor
Visits the given type-specific AST node.

The default implementation does nothing and return true. Subclasses may reimplement.

Overrides:
visit in class ASTVisitor
Parameters:
node - the node to visit
Returns:
true if the children of this node should be visited, and false if the children of this node should be skipped

visit

public boolean visit(MarkerAnnotation node)
Description copied from class: ASTVisitor
Visits the given type-specific AST node.

The default implementation does nothing and return true. Subclasses may reimplement.

Overrides:
visit in class ASTVisitor
Parameters:
node - the node to visit
Returns:
true if the children of this node should be visited, and false if the children of this node should be skipped

visit

public boolean visit(MethodDeclaration node)
Description copied from class: ASTVisitor
Visits the given type-specific AST node.

The default implementation does nothing and return true. Subclasses may reimplement.

Overrides:
visit in class ASTVisitor
Parameters:
node - the node to visit
Returns:
true if the children of this node should be visited, and false if the children of this node should be skipped

visit

public boolean visit(NormalAnnotation node)
Description copied from class: ASTVisitor
Visits the given type-specific AST node.

The default implementation does nothing and return true. Subclasses may reimplement.

Overrides:
visit in class ASTVisitor
Parameters:
node - the node to visit
Returns:
true if the children of this node should be visited, and false if the children of this node should be skipped

visit

public boolean visit(PackageDeclaration node)
Description copied from class: ASTVisitor
Visits the given type-specific AST node.

The default implementation does nothing and return true. Subclasses may reimplement.

Overrides:
visit in class ASTVisitor
Parameters:
node - the node to visit
Returns:
true if the children of this node should be visited, and false if the children of this node should be skipped

visit

public boolean visit(SingleMemberAnnotation node)
Description copied from class: ASTVisitor
Visits the given type-specific AST node.

The default implementation does nothing and return true. Subclasses may reimplement.

Overrides:
visit in class ASTVisitor
Parameters:
node - the node to visit
Returns:
true if the children of this node should be visited, and false if the children of this node should be skipped

visit

public boolean visit(TypeDeclaration node)
Description copied from class: ASTVisitor
Visits the given type-specific AST node.

The default implementation does nothing and return true. Subclasses may reimplement.

Overrides:
visit in class ASTVisitor
Parameters:
node - the node to visit
Returns:
true if the children of this node should be visited, and false if the children of this node should be skipped

visit

public boolean visit(TypeParameter node)
Description copied from class: ASTVisitor
Visits the given type-specific AST node.

The default implementation does nothing and return true. Subclasses may reimplement.

Overrides:
visit in class ASTVisitor
Parameters:
node - the node to visit
Returns:
true if the children of this node should be visited, and false if the children of this node should be skipped

visit

public boolean visit(VariableDeclarationFragment node)
Description copied from class: ASTVisitor
Visits the given type-specific AST node.

The default implementation does nothing and return true. Subclasses may reimplement.

Overrides:
visit in class ASTVisitor
Parameters:
node - the node to visit
Returns:
true if the children of this node should be visited, and false if the children of this node should be skipped