Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

org.eclipse.jdt.core.dom
Class DefaultASTVisitor  view DefaultASTVisitor download DefaultASTVisitor.java

java.lang.Object
  extended byorg.eclipse.jdt.core.dom.ASTVisitor
      extended byorg.eclipse.jdt.core.dom.DefaultASTVisitor
Direct Known Subclasses:
DefaultCommentMapper.CommentMapperVisitor

class DefaultASTVisitor
extends ASTVisitor


Field Summary
 
Fields inherited from class org.eclipse.jdt.core.dom.ASTVisitor
 
Constructor Summary
DefaultASTVisitor()
           
 
Method Summary
 void endVisit(AnonymousClassDeclaration node)
          End of visit the given type-specific AST node.
 void endVisit(ArrayAccess node)
          End of visit the given type-specific AST node.
 void endVisit(ArrayCreation node)
          End of visit the given type-specific AST node.
 void endVisit(ArrayInitializer node)
          End of visit the given type-specific AST node.
 void endVisit(ArrayType node)
          End of visit the given type-specific AST node.
 void endVisit(AssertStatement node)
          End of visit the given type-specific AST node.
 void endVisit(Assignment node)
          End of visit the given type-specific AST node.
 void endVisit(Block node)
          End of visit the given type-specific AST node.
 void endVisit(BlockComment node)
          End of visit the given type-specific AST node.
 void endVisit(BooleanLiteral node)
          End of visit the given type-specific AST node.
 void endVisit(BreakStatement node)
          End of visit the given type-specific AST node.
 void endVisit(CastExpression node)
          End of visit the given type-specific AST node.
 void endVisit(CatchClause node)
          End of visit the given type-specific AST node.
 void endVisit(CharacterLiteral node)
          End of visit the given type-specific AST node.
 void endVisit(ClassInstanceCreation node)
          End of visit the given type-specific AST node.
 void endVisit(CompilationUnit node)
          End of visit the given type-specific AST node.
 void endVisit(ConditionalExpression node)
          End of visit the given type-specific AST node.
 void endVisit(ConstructorInvocation node)
          End of visit the given type-specific AST node.
 void endVisit(ContinueStatement node)
          End of visit the given type-specific AST node.
 void endVisit(DoStatement node)
          End of visit the given type-specific AST node.
 void endVisit(EmptyStatement node)
          End of visit the given type-specific AST node.
 void endVisit(ExpressionStatement node)
          End of visit the given type-specific AST node.
 void endVisit(FieldAccess node)
          End of visit the given type-specific AST node.
 void endVisit(FieldDeclaration node)
          End of visit the given type-specific AST node.
 void endVisit(ForStatement node)
          End of visit the given type-specific AST node.
 void endVisit(IfStatement node)
          End of visit the given type-specific AST node.
 void endVisit(ImportDeclaration node)
          End of visit the given type-specific AST node.
 void endVisit(InfixExpression node)
          End of visit the given type-specific AST node.
 void endVisit(Initializer node)
          End of visit the given type-specific AST node.
 void endVisit(InstanceofExpression node)
          End of visit the given type-specific AST node.
 void endVisit(Javadoc node)
          End of visit the given type-specific AST node.
 void endVisit(LabeledStatement node)
          End of visit the given type-specific AST node.
 void endVisit(LineComment node)
          End of visit the given type-specific AST node.
 void endVisit(MemberRef node)
          End of visit the given type-specific AST node.
 void endVisit(MethodDeclaration node)
          End of visit the given type-specific AST node.
 void endVisit(MethodInvocation node)
          End of visit the given type-specific AST node.
 void endVisit(MethodRef node)
          End of visit the given type-specific AST node.
 void endVisit(MethodRefParameter node)
          End of visit the given type-specific AST node.
 void endVisit(NullLiteral node)
          End of visit the given type-specific AST node.
 void endVisit(NumberLiteral node)
          End of visit the given type-specific AST node.
 void endVisit(PackageDeclaration node)
          End of visit the given type-specific AST node.
 void endVisit(ParenthesizedExpression node)
          End of visit the given type-specific AST node.
 void endVisit(PostfixExpression node)
          End of visit the given type-specific AST node.
 void endVisit(PrefixExpression node)
          End of visit the given type-specific AST node.
 void endVisit(PrimitiveType node)
          End of visit the given type-specific AST node.
 void endVisit(QualifiedName node)
          End of visit the given type-specific AST node.
 void endVisit(ReturnStatement node)
          End of visit the given type-specific AST node.
 void endVisit(SimpleName node)
          End of visit the given type-specific AST node.
 void endVisit(SimpleType node)
          End of visit the given type-specific AST node.
 void endVisit(SingleVariableDeclaration node)
          End of visit the given type-specific AST node.
 void endVisit(StringLiteral node)
          End of visit the given type-specific AST node.
 void endVisit(SuperConstructorInvocation node)
          End of visit the given type-specific AST node.
 void endVisit(SuperFieldAccess node)
          End of visit the given type-specific AST node.
 void endVisit(SuperMethodInvocation node)
          End of visit the given type-specific AST node.
 void endVisit(SwitchCase node)
          End of visit the given type-specific AST node.
 void endVisit(SwitchStatement node)
          End of visit the given type-specific AST node.
 void endVisit(SynchronizedStatement node)
          End of visit the given type-specific AST node.
 void endVisit(TagElement node)
          End of visit the given type-specific AST node.
 void endVisit(TextElement node)
          End of visit the given type-specific AST node.
 void endVisit(ThisExpression node)
          End of visit the given type-specific AST node.
 void endVisit(ThrowStatement node)
          End of visit the given type-specific AST node.
 void endVisit(TryStatement node)
          End of visit the given type-specific AST node.
 void endVisit(TypeDeclaration node)
          End of visit the given type-specific AST node.
 void endVisit(TypeDeclarationStatement node)
          End of visit the given type-specific AST node.
 void endVisit(TypeLiteral node)
          End of visit the given type-specific AST node.
 void endVisit(VariableDeclarationExpression node)
          End of visit the given type-specific AST node.
 void endVisit(VariableDeclarationFragment node)
          End of visit the given type-specific AST node.
 void endVisit(VariableDeclarationStatement node)
          End of visit the given type-specific AST node.
 void endVisit(WhileStatement node)
          End of visit the given type-specific AST node.
protected  void endVisitNode(ASTNode node)
           
 boolean visit(AnonymousClassDeclaration node)
          Visits the given type-specific AST node.
 boolean visit(ArrayAccess node)
          Visits the given type-specific AST node.
 boolean visit(ArrayCreation node)
          Visits the given type-specific AST node.
 boolean visit(ArrayInitializer node)
          Visits the given type-specific AST node.
 boolean visit(ArrayType node)
          Visits the given type-specific AST node.
 boolean visit(AssertStatement node)
          Visits the given type-specific AST node.
 boolean visit(Assignment node)
          Visits the given type-specific AST node.
 boolean visit(Block node)
          Visits the given type-specific AST node.
 boolean visit(BlockComment node)
          Visits the given type-specific AST node.
 boolean visit(BooleanLiteral node)
          Visits the given type-specific AST node.
 boolean visit(BreakStatement node)
          Visits the given type-specific AST node.
 boolean visit(CastExpression node)
          Visits the given type-specific AST node.
 boolean visit(CatchClause node)
          Visits the given type-specific AST node.
 boolean visit(CharacterLiteral node)
          Visits the given type-specific AST node.
 boolean visit(ClassInstanceCreation node)
          Visits the given type-specific AST node.
 boolean visit(CompilationUnit node)
          Visits the given type-specific AST node.
 boolean visit(ConditionalExpression node)
          Visits the given type-specific AST node.
 boolean visit(ConstructorInvocation node)
          Visits the given type-specific AST node.
 boolean visit(ContinueStatement node)
          Visits the given type-specific AST node.
 boolean visit(DoStatement node)
          Visits the given type-specific AST node.
 boolean visit(EmptyStatement node)
          Visits the given type-specific AST node.
 boolean visit(ExpressionStatement node)
          Visits the given type-specific AST node.
 boolean visit(FieldAccess node)
          Visits the given type-specific AST node.
 boolean visit(FieldDeclaration node)
          Visits the given type-specific AST node.
 boolean visit(ForStatement node)
          Visits the given type-specific AST node.
 boolean visit(IfStatement node)
          Visits the given type-specific AST node.
 boolean visit(ImportDeclaration node)
          Visits the given type-specific AST node.
 boolean visit(InfixExpression node)
          Visits the given type-specific AST node.
 boolean visit(Initializer node)
          Visits the given type-specific AST node.
 boolean visit(InstanceofExpression node)
          Visits the given type-specific AST node.
 boolean visit(Javadoc node)
          Visits the given AST node.
 boolean visit(LabeledStatement node)
          Visits the given type-specific AST node.
 boolean visit(LineComment node)
          Visits the given type-specific AST node.
 boolean visit(MemberRef node)
          Visits the given type-specific AST node.
 boolean visit(MethodDeclaration node)
          Visits the given type-specific AST node.
 boolean visit(MethodInvocation node)
          Visits the given type-specific AST node.
 boolean visit(MethodRef node)
          Visits the given type-specific AST node.
 boolean visit(MethodRefParameter node)
          Visits the given type-specific AST node.
 boolean visit(NullLiteral node)
          Visits the given type-specific AST node.
 boolean visit(NumberLiteral node)
          Visits the given type-specific AST node.
 boolean visit(PackageDeclaration node)
          Visits the given type-specific AST node.
 boolean visit(ParenthesizedExpression node)
          Visits the given type-specific AST node.
 boolean visit(PostfixExpression node)
          Visits the given type-specific AST node.
 boolean visit(PrefixExpression node)
          Visits the given type-specific AST node.
 boolean visit(PrimitiveType node)
          Visits the given type-specific AST node.
 boolean visit(QualifiedName node)
          Visits the given type-specific AST node.
 boolean visit(ReturnStatement node)
          Visits the given type-specific AST node.
 boolean visit(SimpleName node)
          Visits the given type-specific AST node.
 boolean visit(SimpleType node)
          Visits the given type-specific AST node.
 boolean visit(SingleVariableDeclaration node)
          Visits the given type-specific AST node.
 boolean visit(StringLiteral node)
          Visits the given type-specific AST node.
 boolean visit(SuperConstructorInvocation node)
          Visits the given type-specific AST node.
 boolean visit(SuperFieldAccess node)
          Visits the given type-specific AST node.
 boolean visit(SuperMethodInvocation node)
          Visits the given type-specific AST node.
 boolean visit(SwitchCase node)
          Visits the given type-specific AST node.
 boolean visit(SwitchStatement node)
          Visits the given type-specific AST node.
 boolean visit(SynchronizedStatement node)
          Visits the given type-specific AST node.
 boolean visit(TagElement node)
          Visits the given type-specific AST node.
 boolean visit(TextElement node)
          Visits the given type-specific AST node.
 boolean visit(ThisExpression node)
          Visits the given type-specific AST node.
 boolean visit(ThrowStatement node)
          Visits the given type-specific AST node.
 boolean visit(TryStatement node)
          Visits the given type-specific AST node.
 boolean visit(TypeDeclaration node)
          Visits the given type-specific AST node.
 boolean visit(TypeDeclarationStatement node)
          Visits the given type-specific AST node.
 boolean visit(TypeLiteral node)
          Visits the given type-specific AST node.
 boolean visit(VariableDeclarationExpression node)
          Visits the given type-specific AST node.
 boolean visit(VariableDeclarationFragment node)
          Visits the given type-specific AST node.
 boolean visit(VariableDeclarationStatement node)
          Visits the given type-specific AST node.
 boolean visit(WhileStatement node)
          Visits the given type-specific AST node.
protected  boolean visitNode(ASTNode node)
           
 
Methods inherited from class org.eclipse.jdt.core.dom.ASTVisitor
endVisit, endVisit, endVisit, endVisit, endVisit, endVisit, endVisit, endVisit, endVisit, endVisit, endVisit, endVisit, endVisit, endVisit, postVisit, preVisit, 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
 

Constructor Detail

DefaultASTVisitor

public DefaultASTVisitor()
Method Detail

visitNode

protected boolean visitNode(ASTNode node)

endVisitNode

protected void endVisitNode(ASTNode node)

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

visit

public boolean visit(ArrayAccess 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

visit

public boolean visit(ArrayCreation 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

visit

public boolean visit(ArrayInitializer 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

visit

public boolean visit(ArrayType 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

visit

public boolean visit(AssertStatement 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

visit

public boolean visit(Assignment 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

visit

public boolean visit(Block 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

visit

public boolean visit(BooleanLiteral 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

visit

public boolean visit(BreakStatement 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

visit

public boolean visit(CastExpression 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

visit

public boolean visit(CatchClause 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

visit

public boolean visit(CharacterLiteral 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

visit

public boolean visit(ClassInstanceCreation 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

visit

public boolean visit(CompilationUnit 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

visit

public boolean visit(ConditionalExpression 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

visit

public boolean visit(ConstructorInvocation 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

visit

public boolean visit(ContinueStatement 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

visit

public boolean visit(DoStatement 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

visit

public boolean visit(EmptyStatement 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

visit

public boolean visit(ExpressionStatement 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

visit

public boolean visit(FieldAccess 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

visit

public boolean visit(FieldDeclaration 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

visit

public boolean visit(ForStatement 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

visit

public boolean visit(IfStatement 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

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

visit

public boolean visit(InfixExpression 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

visit

public boolean visit(InstanceofExpression 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

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

visit

public boolean visit(Javadoc node)
Description copied from class: ASTVisitor
Visits the given AST node.

Unlike other node types, the boolean returned by the default implementation is controlled by a constructor-supplied parameter ASTVisitor(boolean) 55 which is false by default. Subclasses may reimplement.

Overrides:
visit in class ASTVisitor

visit

public boolean visit(LabeledStatement 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

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

visit

public boolean visit(MethodInvocation 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

visit

public boolean visit(NullLiteral 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

visit

public boolean visit(NumberLiteral 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

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

visit

public boolean visit(ParenthesizedExpression 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

visit

public boolean visit(PostfixExpression 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

visit

public boolean visit(PrefixExpression 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

visit

public boolean visit(PrimitiveType 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

visit

public boolean visit(QualifiedName 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

visit

public boolean visit(ReturnStatement 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: