net.jangaroo.jooc.ast
Class TransitiveAstVisitor

java.lang.Object
  extended by net.jangaroo.jooc.ast.TransitiveAstVisitor
All Implemented Interfaces:
AstVisitor

public class TransitiveAstVisitor
extends Object
implements AstVisitor

Traverse the entire AST.


Constructor Summary
TransitiveAstVisitor(AstVisitor delegate)
           
 
Method Summary
 void visitAnnotation(Annotation annotation)
           
 void visitAnnotationParameter(AnnotationParameter annotationParameter)
           
 void visitApplyExpr(ApplyExpr applyExpr)
           
 void visitArrayIndexExpr(ArrayIndexExpr arrayIndexExpr)
           
 void visitArrayLiteral(ArrayLiteral arrayLiteral)
           
 void visitAsExpr(AsExpr asExpr)
           
 void visitAssignmentOpExpr(AssignmentOpExpr assignmentOpExpr)
           
 void visitBinaryOpExpr(BinaryOpExpr binaryOpExpr)
           
 void visitBlockStatement(BlockStatement blockStatement)
           
 void visitBreakStatement(BreakStatement breakStatement)
           
 void visitCaseStatement(CaseStatement caseStatement)
           
 void visitCatch(Catch aCatch)
           
 void visitClassBody(ClassBody classBody)
           
 void visitClassDeclaration(ClassDeclaration classDeclaration)
           
<T extends AstNode>
void
visitCommaSeparatedList(CommaSeparatedList<T> nodeTypeCommaSeparatedList)
           
 void visitCompilationUnit(CompilationUnit compilationUnit)
           
 void visitConditionalExpr(ConditionalExpr conditionalExpr)
           
 void visitContinueStatement(ContinueStatement continueStatement)
           
 void visitDefaultStatement(DefaultStatement defaultStatement)
           
 void visitDoStatement(DoStatement doStatement)
           
 void visitDotExpr(DotExpr dotExpr)
           
 void visitEmptyDeclaration(EmptyDeclaration emptyDeclaration)
           
 void visitEmptyStatement(EmptyStatement emptyStatement)
           
 void visitExtends(Extends anExtends)
           
 void visitForInitializer(ForInitializer forInitializer)
           
 void visitForInStatement(ForInStatement forInStatement)
           
 void visitForStatement(ForStatement forStatement)
           
 void visitFunctionDeclaration(FunctionDeclaration functionDeclaration)
           
 void visitFunctionExpr(FunctionExpr functionExpr)
           
 void visitIde(Ide ide)
           
 void visitIdeExpression(IdeExpr ideExpr)
           
 void visitIdeWithTypeParam(IdeWithTypeParam ideWithTypeParam)
           
 void visitIfStatement(IfStatement ifStatement)
           
 void visitImplements(Implements anImplements)
           
 void visitImportDirective(ImportDirective importDirective)
           
 void visitInfixOpExpr(InfixOpExpr infixOpExpr)
           
 void visitInitializer(Initializer initializer)
           
 void visitIsExpr(IsExpr isExpr)
           
 void visitLabeledStatement(LabeledStatement labeledStatement)
           
 void visitLiteralExpr(LiteralExpr literalExpr)
           
 void visitNamespacedDeclaration(NamespacedDeclaration namespacedDeclaration)
           
 void visitNamespacedIde(NamespacedIde namespacedIde)
           
 void visitNewExpr(NewExpr newExpr)
           
 void visitObjectField(ObjectField objectField)
           
 void visitObjectLiteral(ObjectLiteral objectLiteral)
           
 void visitPackageDeclaration(PackageDeclaration packageDeclaration)
           
 void visitParameter(Parameter parameter)
           
 void visitParameters(Parameters parameters)
           
<T extends Expr>
void
visitParenthesizedExpr(ParenthesizedExpr<T> parenthesizedExpr)
           
 void visitPostfixOpExpr(PostfixOpExpr postfixOpExpr)
           
 void visitPredefinedTypeDeclaration(PredefinedTypeDeclaration predefinedTypeDeclaration)
           
 void visitPrefixOpExpr(PrefixOpExpr prefixOpExpr)
           
 void visitQualifiedIde(QualifiedIde qualifiedIde)
           
 void visitReturnStatement(ReturnStatement returnStatement)
           
 void visitSemicolonTerminatedStatement(SemicolonTerminatedStatement semicolonTerminatedStatement)
           
 void visitSuperConstructorCallStatement(SuperConstructorCallStatement superConstructorCallStatement)
           
 void visitSwitchStatement(SwitchStatement switchStatement)
           
 void visitThrowStatement(ThrowStatement throwStatement)
           
 void visitTryStatement(TryStatement tryStatement)
           
 void visitType(Type type)
           
 void visitTypeRelation(TypeRelation typeRelation)
           
 void visitUseNamespaceDirective(UseNamespaceDirective useNamespaceDirective)
           
 void visitVariableDeclaration(VariableDeclaration variableDeclaration)
           
 void visitVectorLiteral(VectorLiteral vectorLiteral)
           
 void visitWhileStatement(WhileStatement whileStatement)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TransitiveAstVisitor

public TransitiveAstVisitor(AstVisitor delegate)
Method Detail

visitTypeRelation

public void visitTypeRelation(TypeRelation typeRelation)
                       throws IOException
Specified by:
visitTypeRelation in interface AstVisitor
Throws:
IOException

visitAnnotationParameter

public void visitAnnotationParameter(AnnotationParameter annotationParameter)
                              throws IOException
Specified by:
visitAnnotationParameter in interface AstVisitor
Throws:
IOException

visitExtends

public void visitExtends(Extends anExtends)
                  throws IOException
Specified by:
visitExtends in interface AstVisitor
Throws:
IOException

visitInitializer

public void visitInitializer(Initializer initializer)
                      throws IOException
Specified by:
visitInitializer in interface AstVisitor
Throws:
IOException

visitObjectField

public void visitObjectField(ObjectField objectField)
                      throws IOException
Specified by:
visitObjectField in interface AstVisitor
Throws:
IOException

visitForInitializer

public void visitForInitializer(ForInitializer forInitializer)
                         throws IOException
Specified by:
visitForInitializer in interface AstVisitor
Throws:
IOException

visitCompilationUnit

public void visitCompilationUnit(CompilationUnit compilationUnit)
                          throws IOException
Specified by:
visitCompilationUnit in interface AstVisitor
Throws:
IOException

visitIde

public void visitIde(Ide ide)
              throws IOException
Specified by:
visitIde in interface AstVisitor
Throws:
IOException

visitQualifiedIde

public void visitQualifiedIde(QualifiedIde qualifiedIde)
                       throws IOException
Specified by:
visitQualifiedIde in interface AstVisitor
Throws:
IOException

visitIdeWithTypeParam

public void visitIdeWithTypeParam(IdeWithTypeParam ideWithTypeParam)
                           throws IOException
Specified by:
visitIdeWithTypeParam in interface AstVisitor
Throws:
IOException

visitNamespacedIde

public void visitNamespacedIde(NamespacedIde namespacedIde)
                        throws IOException
Specified by:
visitNamespacedIde in interface AstVisitor
Throws:
IOException

visitImplements

public void visitImplements(Implements anImplements)
                     throws IOException
Specified by:
visitImplements in interface AstVisitor
Throws:
IOException

visitType

public void visitType(Type type)
               throws IOException
Specified by:
visitType in interface AstVisitor
Throws:
IOException

visitObjectLiteral

public void visitObjectLiteral(ObjectLiteral objectLiteral)
                        throws IOException
Specified by:
visitObjectLiteral in interface AstVisitor
Throws:
IOException

visitIdeExpression

public void visitIdeExpression(IdeExpr ideExpr)
                        throws IOException
Specified by:
visitIdeExpression in interface AstVisitor
Throws:
IOException

visitParenthesizedExpr

public <T extends Expr> void visitParenthesizedExpr(ParenthesizedExpr<T> parenthesizedExpr)
                            throws IOException
Specified by:
visitParenthesizedExpr in interface AstVisitor
Throws:
IOException

visitArrayLiteral

public void visitArrayLiteral(ArrayLiteral arrayLiteral)
                       throws IOException
Specified by:
visitArrayLiteral in interface AstVisitor
Throws:
IOException

visitLiteralExpr

public void visitLiteralExpr(LiteralExpr literalExpr)
                      throws IOException
Specified by:
visitLiteralExpr in interface AstVisitor
Throws:
IOException

visitPostfixOpExpr

public void visitPostfixOpExpr(PostfixOpExpr postfixOpExpr)
                        throws IOException
Specified by:
visitPostfixOpExpr in interface AstVisitor
Throws:
IOException

visitDotExpr

public void visitDotExpr(DotExpr dotExpr)
                  throws IOException
Specified by:
visitDotExpr in interface AstVisitor
Throws:
IOException

visitPrefixOpExpr

public void visitPrefixOpExpr(PrefixOpExpr prefixOpExpr)
                       throws IOException
Specified by:
visitPrefixOpExpr in interface AstVisitor
Throws:
IOException

visitBinaryOpExpr

public void visitBinaryOpExpr(BinaryOpExpr binaryOpExpr)
                       throws IOException
Specified by:
visitBinaryOpExpr in interface AstVisitor
Throws:
IOException

visitAssignmentOpExpr

public void visitAssignmentOpExpr(AssignmentOpExpr assignmentOpExpr)
                           throws IOException
Specified by:
visitAssignmentOpExpr in interface AstVisitor
Throws:
IOException

visitInfixOpExpr

public void visitInfixOpExpr(InfixOpExpr infixOpExpr)
                      throws IOException
Specified by:
visitInfixOpExpr in interface AstVisitor
Throws:
IOException

visitAsExpr

public void visitAsExpr(AsExpr asExpr)
                 throws IOException
Specified by:
visitAsExpr in interface AstVisitor
Throws:
IOException

visitIsExpr

public void visitIsExpr(IsExpr isExpr)
                 throws IOException
Specified by:
visitIsExpr in interface AstVisitor
Throws:
IOException

visitConditionalExpr

public void visitConditionalExpr(ConditionalExpr conditionalExpr)
                          throws IOException
Specified by:
visitConditionalExpr in interface AstVisitor
Throws:
IOException

visitArrayIndexExpr

public void visitArrayIndexExpr(ArrayIndexExpr arrayIndexExpr)
                         throws IOException
Specified by:
visitArrayIndexExpr in interface AstVisitor
Throws:
IOException

visitCommaSeparatedList

public <T extends AstNode> void visitCommaSeparatedList(CommaSeparatedList<T> nodeTypeCommaSeparatedList)
                             throws IOException
Specified by:
visitCommaSeparatedList in interface AstVisitor
Throws:
IOException

visitParameters

public void visitParameters(Parameters parameters)
                     throws IOException
Specified by:
visitParameters in interface AstVisitor
Throws:
IOException

visitFunctionExpr

public void visitFunctionExpr(FunctionExpr functionExpr)
                       throws IOException
Specified by:
visitFunctionExpr in interface AstVisitor
Throws:
IOException

visitVectorLiteral

public void visitVectorLiteral(VectorLiteral vectorLiteral)
                        throws IOException
Specified by:
visitVectorLiteral in interface AstVisitor
Throws:
IOException

visitApplyExpr

public void visitApplyExpr(ApplyExpr applyExpr)
                    throws IOException
Specified by:
visitApplyExpr in interface AstVisitor
Throws:
IOException

visitNewExpr

public void visitNewExpr(NewExpr newExpr)
                  throws IOException
Specified by:
visitNewExpr in interface AstVisitor
Throws:
IOException

visitClassBody

public void visitClassBody(ClassBody classBody)
                    throws IOException
Specified by:
visitClassBody in interface AstVisitor
Throws:
IOException

visitBlockStatement

public void visitBlockStatement(BlockStatement blockStatement)
                         throws IOException
Specified by:
visitBlockStatement in interface AstVisitor
Throws:
IOException

visitDefaultStatement

public void visitDefaultStatement(DefaultStatement defaultStatement)
                           throws IOException
Specified by:
visitDefaultStatement in interface AstVisitor
Throws:
IOException

visitLabeledStatement

public void visitLabeledStatement(LabeledStatement labeledStatement)
                           throws IOException
Specified by:
visitLabeledStatement in interface AstVisitor
Throws:
IOException

visitIfStatement

public void visitIfStatement(IfStatement ifStatement)
                      throws IOException
Specified by:
visitIfStatement in interface AstVisitor
Throws:
IOException

visitCaseStatement

public void visitCaseStatement(CaseStatement caseStatement)
                        throws IOException
Specified by:
visitCaseStatement in interface AstVisitor
Throws:
IOException

visitTryStatement

public void visitTryStatement(TryStatement tryStatement)
                       throws IOException
Specified by:
visitTryStatement in interface AstVisitor
Throws:
IOException

visitCatch

public void visitCatch(Catch aCatch)
                throws IOException
Specified by:
visitCatch in interface AstVisitor
Throws:
IOException

visitForInStatement

public void visitForInStatement(ForInStatement forInStatement)
                         throws IOException
Specified by:
visitForInStatement in interface AstVisitor
Throws:
IOException

visitWhileStatement

public void visitWhileStatement(WhileStatement whileStatement)
                         throws IOException
Specified by:
visitWhileStatement in interface AstVisitor
Throws:
IOException

visitForStatement

public void visitForStatement(ForStatement forStatement)
                       throws IOException
Specified by:
visitForStatement in interface AstVisitor
Throws:
IOException

visitDoStatement

public void visitDoStatement(DoStatement doStatement)
                      throws IOException
Specified by:
visitDoStatement in interface AstVisitor
Throws:
IOException

visitSwitchStatement

public void visitSwitchStatement(SwitchStatement switchStatement)
                          throws IOException
Specified by:
visitSwitchStatement in interface AstVisitor
Throws:
IOException

visitSemicolonTerminatedStatement

public void visitSemicolonTerminatedStatement(SemicolonTerminatedStatement semicolonTerminatedStatement)
                                       throws IOException
Specified by:
visitSemicolonTerminatedStatement in interface AstVisitor
Throws:
IOException

visitContinueStatement

public void visitContinueStatement(ContinueStatement continueStatement)
                            throws IOException
Specified by:
visitContinueStatement in interface AstVisitor
Throws:
IOException

visitBreakStatement

public void visitBreakStatement(BreakStatement breakStatement)
                         throws IOException
Specified by:
visitBreakStatement in interface AstVisitor
Throws:
IOException

visitThrowStatement

public void visitThrowStatement(ThrowStatement throwStatement)
                         throws IOException
Specified by:
visitThrowStatement in interface AstVisitor
Throws:
IOException

visitReturnStatement

public void visitReturnStatement(ReturnStatement returnStatement)
                          throws IOException
Specified by:
visitReturnStatement in interface AstVisitor
Throws:
IOException

visitEmptyStatement

public void visitEmptyStatement(EmptyStatement emptyStatement)
                         throws IOException
Specified by:
visitEmptyStatement in interface AstVisitor
Throws:
IOException

visitEmptyDeclaration

public void visitEmptyDeclaration(EmptyDeclaration emptyDeclaration)
                           throws IOException
Specified by:
visitEmptyDeclaration in interface AstVisitor
Throws:
IOException

visitParameter

public void visitParameter(Parameter parameter)
                    throws IOException
Specified by:
visitParameter in interface AstVisitor
Throws:
IOException

visitVariableDeclaration

public void visitVariableDeclaration(VariableDeclaration variableDeclaration)
                              throws IOException
Specified by:
visitVariableDeclaration in interface AstVisitor
Throws:
IOException

visitFunctionDeclaration

public void visitFunctionDeclaration(FunctionDeclaration functionDeclaration)
                              throws IOException
Specified by:
visitFunctionDeclaration in interface AstVisitor
Throws:
IOException

visitClassDeclaration

public void visitClassDeclaration(ClassDeclaration classDeclaration)
                           throws IOException
Specified by:
visitClassDeclaration in interface AstVisitor
Throws:
IOException

visitPredefinedTypeDeclaration

public void visitPredefinedTypeDeclaration(PredefinedTypeDeclaration predefinedTypeDeclaration)
                                    throws IOException
Specified by:
visitPredefinedTypeDeclaration in interface AstVisitor
Throws:
IOException

visitNamespacedDeclaration

public void visitNamespacedDeclaration(NamespacedDeclaration namespacedDeclaration)
                                throws IOException
Specified by:
visitNamespacedDeclaration in interface AstVisitor
Throws:
IOException

visitPackageDeclaration

public void visitPackageDeclaration(PackageDeclaration packageDeclaration)
                             throws IOException
Specified by:
visitPackageDeclaration in interface AstVisitor
Throws:
IOException

visitSuperConstructorCallStatement

public void visitSuperConstructorCallStatement(SuperConstructorCallStatement superConstructorCallStatement)
                                        throws IOException
Specified by:
visitSuperConstructorCallStatement in interface AstVisitor
Throws:
IOException

visitAnnotation

public void visitAnnotation(Annotation annotation)
                     throws IOException
Specified by:
visitAnnotation in interface AstVisitor
Throws:
IOException

visitUseNamespaceDirective

public void visitUseNamespaceDirective(UseNamespaceDirective useNamespaceDirective)
                                throws IOException
Specified by:
visitUseNamespaceDirective in interface AstVisitor
Throws:
IOException

visitImportDirective

public void visitImportDirective(ImportDirective importDirective)
                          throws IOException
Specified by:
visitImportDirective in interface AstVisitor
Throws:
IOException


Copyright © 2002-2012 CoreMedia AG. All Rights Reserved.