Logo Search packages:      
Sourcecode: janino version File versions  Download package

org::codehaus::janino::util::Traverser Class Reference

Inheritance diagram for org::codehaus::janino::util::Traverser:

org::codehaus::janino::samples::DeclarationCounter

List of all members.


Detailed Description

This class traverses the subnodes of an AST. Derived classes may override individual methods to process specific nodes, e.g.:
     LocalClassDeclaration lcd = ...;
     lcd.accept(new Traverser {
         int n = 0;
         public void traverseMethodDeclarator(Java.MethodDeclarator md) {
             ++this.n;
             super.traverseMethodDeclarator(md);
         }
     }.comprehensiveVisitor());

Definition at line 55 of file Traverser.java.


Public Member Functions

ComprehensiveVisitor comprehensiveVisitor ()
void traverseAbstractTypeBodyDeclaration (Java.AbstractTypeBodyDeclaration atbd)
void traverseAbstractTypeDeclaration (Java.AbstractTypeDeclaration atd)
void traverseAlternateConstructorInvocation (Java.AlternateConstructorInvocation aci)
void traverseAmbiguousName (Java.AmbiguousName an)
void traverseAnonymousClassDeclaration (Java.AnonymousClassDeclaration acd)
void traverseArrayAccessExpression (Java.ArrayAccessExpression aae)
void traverseArrayInitializerOrRvalue (Java.ArrayInitializerOrRvalue aiorv)
void traverseArrayLength (Java.ArrayLength al)
void traverseArrayType (Java.ArrayType at)
void traverseAssignment (Java.Assignment a)
void traverseAtom (Java.Atom a)
void traverseBasicType (Java.BasicType bt)
void traverseBinaryOperation (Java.BinaryOperation bo)
void traverseBlock (Java.Block b)
void traverseBooleanRvalue (Java.BooleanRvalue brv)
void traverseBreakableStatement (Java.BreakableStatement bs)
void traverseBreakStatement (Java.BreakStatement bs)
void traverseCast (Java.Cast c)
void traverseClassDeclaration (Java.ClassDeclaration cd)
void traverseClassLiteral (Java.ClassLiteral cl)
void traverseCompilationUnit (Java.CompilationUnit cu)
void traverseConditionalExpression (Java.ConditionalExpression ce)
void traverseConstantValue (Java.ConstantValue cv)
void traverseConstructorDeclarator (Java.ConstructorDeclarator cd)
void traverseConstructorInvocation (Java.ConstructorInvocation ci)
void traverseContinuableStatement (Java.ContinuableStatement cs)
void traverseContinueStatement (Java.ContinueStatement cs)
void traverseCrement (Java.Crement c)
void traverseDoStatement (Java.DoStatement ds)
void traverseEmptyStatement (Java.EmptyStatement es)
void traverseExpressionStatement (Java.ExpressionStatement es)
void traverseFieldAccess (Java.FieldAccess fa)
void traverseFieldAccessExpression (Java.FieldAccessExpression fae)
void traverseFieldDeclaration (Java.FieldDeclaration fd)
void traverseForStatement (Java.ForStatement fs)
void traverseFunctionDeclarator (Java.FunctionDeclarator fd)
void traverseIfStatement (Java.IfStatement is)
void traverseImportDeclaration (Java.CompilationUnit.ImportDeclaration id)
void traverseInitializer (Java.Initializer i)
void traverseInstanceof (Java.Instanceof io)
void traverseInterfaceDeclaration (Java.InterfaceDeclaration id)
void traverseInvocation (Java.Invocation i)
void traverseLabeledStatement (Java.LabeledStatement ls)
void traverseLiteral (Java.Literal l)
void traverseLocalClassDeclaration (Java.LocalClassDeclaration lcd)
void traverseLocalClassDeclarationStatement (Java.LocalClassDeclarationStatement lcds)
void traverseLocalVariableAccess (Java.LocalVariableAccess lva)
void traverseLocalVariableDeclarationStatement (Java.LocalVariableDeclarationStatement lvds)
void traverseLocated (Java.Located l)
void traverseLvalue (Java.Lvalue lv)
void traverseMemberClassDeclaration (Java.MemberClassDeclaration mcd)
void traverseMemberInterfaceDeclaration (Java.MemberInterfaceDeclaration mid)
void traverseMethodDeclarator (Java.MethodDeclarator md)
void traverseMethodInvocation (Java.MethodInvocation mi)
void traverseNamedClassDeclaration (Java.NamedClassDeclaration ncd)
void traverseNewAnonymousClassInstance (Java.NewAnonymousClassInstance naci)
void traverseNewArray (Java.NewArray na)
void traverseNewClassInstance (Java.NewClassInstance nci)
void traverseNewInitializedArray (Java.NewInitializedArray nia)
void traversePackage (Java.Package p)
void traversePackageMemberClassDeclaration (Java.PackageMemberClassDeclaration pmcd)
void traversePackageMemberInterfaceDeclaration (Java.PackageMemberInterfaceDeclaration pmid)
void traverseParameterAccess (Java.ParameterAccess pa)
void traverseParenthesizedExpression (Java.ParenthesizedExpression pe)
void traverseQualifiedThisReference (Java.QualifiedThisReference qtr)
void traverseReferenceType (Java.ReferenceType rt)
void traverseReturnStatement (Java.ReturnStatement rs)
void traverseRvalue (Java.Rvalue rv)
void traverseRvalueMemberType (Java.RvalueMemberType rmt)
void traverseSimpleType (Java.SimpleType st)
void traverseSingleStaticImportDeclaration (Java.CompilationUnit.SingleStaticImportDeclaration stid)
void traverseSingleTypeImportDeclaration (Java.CompilationUnit.SingleTypeImportDeclaration stid)
void traverseStatement (Java.Statement s)
void traverseStaticImportOnDemandDeclaration (Java.CompilationUnit.StaticImportOnDemandDeclaration siodd)
void traverseSuperclassFieldAccessExpression (Java.SuperclassFieldAccessExpression scfae)
void traverseSuperclassMethodInvocation (Java.SuperclassMethodInvocation smi)
void traverseSuperConstructorInvocation (Java.SuperConstructorInvocation sci)
void traverseSwitchStatement (Java.SwitchStatement ss)
void traverseSynchronizedStatement (Java.SynchronizedStatement ss)
void traverseThisReference (Java.ThisReference tr)
void traverseThrowStatement (Java.ThrowStatement ts)
void traverseTryStatement (Java.TryStatement ts)
void traverseType (Java.Type t)
void traverseTypeImportOnDemandDeclaration (Java.CompilationUnit.TypeImportOnDemandDeclaration tiodd)
void traverseUnaryOperation (Java.UnaryOperation uo)
void traverseWhileStatement (Java.WhileStatement ws)

Private Attributes

final Visitor.ComprehensiveVisitor cv

The documentation for this class was generated from the following file:

Generated by  Doxygen 1.6.0   Back to index