janino.net

org.codehaus.janino
Class UnparseVisitor

java.lang.Object
  extended by org.codehaus.janino.UnparseVisitor
All Implemented Interfaces:
Visitor.AnnotationVisitor, Visitor.AtomVisitor, Visitor.BlockStatementVisitor, Visitor.ComprehensiveVisitor, Visitor.ElementValueVisitor, Visitor.FunctionDeclaratorVisitor, Visitor.ImportVisitor, Visitor.LvalueVisitor, Visitor.RvalueVisitor, Visitor.TypeBodyDeclarationVisitor, Visitor.TypeDeclarationVisitor, Visitor.TypeVisitor

public class UnparseVisitor
extends java.lang.Object
implements Visitor.ComprehensiveVisitor

A visitor that unparses (un-compiles) an AST to a Writer. See main(String[]) for a usage example.


Field Summary
protected  java.io.PrintWriter pw
          Where the visit...() methods print their text.
 
Constructor Summary
UnparseVisitor(java.io.Writer w)
           
 
Method Summary
 void close()
          Flushes all generated code.
static void main(java.lang.String[] args)
          Testing of parsing/unparsing.
static void unparse(Java.CompilationUnit cu, java.io.Writer w)
          Unparses the given Java.CompilationUnit to the given Writer.
 void unparseCompilationUnit(Java.CompilationUnit cu)
           
 void visitAlternateConstructorInvocation(Java.AlternateConstructorInvocation aci)
          Invoked by Java.AlternateConstructorInvocation.accept(Visitor.BlockStatementVisitor)
 void visitAmbiguousName(Java.AmbiguousName an)
          Invoked by Java.AmbiguousName.accept(Visitor.LvalueVisitor)
 void visitAnonymousClassDeclaration(Java.AnonymousClassDeclaration acd)
          Invoked by Java.AnonymousClassDeclaration.accept(Visitor.TypeDeclarationVisitor)
 void visitArrayAccessExpression(Java.ArrayAccessExpression aae)
          Invoked by Java.ArrayAccessExpression.accept(Visitor.LvalueVisitor)
 void visitArrayLength(Java.ArrayLength al)
          Invoked by Java.ArrayLength.accept(Visitor.RvalueVisitor)
 void visitArrayType(Java.ArrayType at)
          Invoked by Java.ArrayType.accept(Visitor.TypeVisitor)
 void visitAssertStatement(Java.AssertStatement as)
          Invoked by Java.AssertStatement.accept(Visitor.BlockStatementVisitor)
 void visitAssignment(Java.Assignment a)
          Invoked by Java.Assignment.accept(Visitor.RvalueVisitor)
 void visitBasicType(Java.BasicType bt)
          Invoked by Java.BasicType.accept(Visitor.TypeVisitor)
 void visitBinaryOperation(Java.BinaryOperation bo)
          Invoked by Java.BinaryOperation.accept(Visitor.RvalueVisitor)
 void visitBlock(Java.Block b)
          Invoked by Java.Block.accept(Visitor.BlockStatementVisitor)
 void visitBooleanLiteral(Java.BooleanLiteral bl)
          Invoked by Java.BooleanLiteral.accept(Visitor.RvalueVisitor)
 void visitBreakStatement(Java.BreakStatement bs)
          Invoked by Java.BreakStatement.accept(Visitor.BlockStatementVisitor)
 void visitCast(Java.Cast c)
          Invoked by Java.Cast.accept(Visitor.RvalueVisitor)
 void visitCharacterLiteral(Java.CharacterLiteral cl)
          Invoked by Java.CharacterLiteral.accept(Visitor.RvalueVisitor)
 void visitClassLiteral(Java.ClassLiteral cl)
          Invoked by Java.ClassLiteral.accept(Visitor.RvalueVisitor)
 void visitConditionalExpression(Java.ConditionalExpression ce)
          Invoked by Java.ConditionalExpression.accept(Visitor.RvalueVisitor)
 void visitConstructorDeclarator(Java.ConstructorDeclarator cd)
          Invoked by Java.ConstructorDeclarator.accept(Visitor.TypeBodyDeclarationVisitor)
 void visitContinueStatement(Java.ContinueStatement cs)
          Invoked by Java.ContinueStatement.accept(Visitor.BlockStatementVisitor)
 void visitCrement(Java.Crement c)
          Invoked by Java.Crement.accept(Visitor.RvalueVisitor)
 void visitDoStatement(Java.DoStatement ds)
          Invoked by Java.DoStatement.accept(Visitor.BlockStatementVisitor)
 void visitElementValueArrayInitializer(Java.ElementValueArrayInitializer evai)
          Invoked by Java.ElementValueArrayInitializer.accept(Visitor.ElementValueVisitor)
 void visitEmptyStatement(Java.EmptyStatement es)
          Invoked by Java.EmptyStatement.accept(Visitor.BlockStatementVisitor)
 void visitExpressionStatement(Java.ExpressionStatement es)
          Invoked by Java.ExpressionStatement.accept(Visitor.BlockStatementVisitor)
 void visitFieldAccess(Java.FieldAccess fa)
          Invoked by Java.FieldAccess.accept(Visitor.LvalueVisitor)
 void visitFieldAccessExpression(Java.FieldAccessExpression fae)
          Invoked by Java.FieldAccessExpression.accept(Visitor.LvalueVisitor)
 void visitFieldDeclaration(Java.FieldDeclaration fd)
          Invoked by Java.FieldDeclaration.accept(Visitor.TypeBodyDeclarationVisitor)
 void visitFloatingPointLiteral(Java.FloatingPointLiteral fpl)
          Invoked by Java.FloatingPointLiteral.accept(Visitor.RvalueVisitor)
 void visitForEachStatement(Java.ForEachStatement fes)
          Invoked by Java.ForEachStatement.accept(Visitor.BlockStatementVisitor)
 void visitForStatement(Java.ForStatement fs)
          Invoked by Java.ForStatement.accept(Visitor.BlockStatementVisitor)
 void visitIfStatement(Java.IfStatement is)
          Invoked by Java.IfStatement.accept(Visitor.BlockStatementVisitor)
 void visitInitializer(Java.Initializer i)
          Invoked by Java.Initializer.accept(Visitor.TypeBodyDeclarationVisitor)
 void visitInstanceof(Java.Instanceof io)
          Invoked by Java.Instanceof.accept(Visitor.RvalueVisitor)
 void visitIntegerLiteral(Java.IntegerLiteral il)
          Invoked by Java.IntegerLiteral.accept(Visitor.RvalueVisitor)
 void visitLabeledStatement(Java.LabeledStatement ls)
          Invoked by Java.LabeledStatement.accept(Visitor.BlockStatementVisitor)
 void visitLocalClassDeclaration(Java.LocalClassDeclaration lcd)
          Invoked by Java.LocalClassDeclaration.accept(Visitor.TypeDeclarationVisitor)
 void visitLocalClassDeclarationStatement(Java.LocalClassDeclarationStatement lcds)
          Invoked by Java.LocalClassDeclarationStatement.accept(Visitor.BlockStatementVisitor)
 void visitLocalVariableAccess(Java.LocalVariableAccess lva)
          Invoked by Java.LocalVariableAccess.accept(Visitor.LvalueVisitor)
 void visitLocalVariableDeclarationStatement(Java.LocalVariableDeclarationStatement lvds)
          Invoked by Java.LocalVariableDeclarationStatement.accept(Visitor.BlockStatementVisitor)
 void visitMarkerAnnotation(Java.MarkerAnnotation ma)
          Invoked by Java.MarkerAnnotation.accept(Visitor.AnnotationVisitor)
 void visitMemberClassDeclaration(Java.MemberClassDeclaration mcd)
          Invoked by Java.MemberClassDeclaration.accept(Visitor.TypeDeclarationVisitor)
 void visitMemberInterfaceDeclaration(Java.MemberInterfaceDeclaration mid)
          Invoked by Java.MemberInterfaceDeclaration.accept(Visitor.TypeDeclarationVisitor)
 void visitMethodDeclarator(Java.MethodDeclarator md)
          Invoked by Java.MethodDeclarator.accept(Visitor.TypeBodyDeclarationVisitor)
 void visitMethodInvocation(Java.MethodInvocation mi)
          Invoked by Java.MethodInvocation.accept(Visitor.RvalueVisitor)
 void visitNewAnonymousClassInstance(Java.NewAnonymousClassInstance naci)
          Invoked by Java.NewAnonymousClassInstance.accept(Visitor.RvalueVisitor)
 void visitNewArray(Java.NewArray na)
          Invoked by Java.NewArray.accept(Visitor.RvalueVisitor)
 void visitNewClassInstance(Java.NewClassInstance nci)
          Invoked by Java.NewClassInstance.accept(Visitor.RvalueVisitor)
 void visitNewInitializedArray(Java.NewInitializedArray nai)
          Invoked by Java.NewInitializedArray.accept(Visitor.RvalueVisitor)
 void visitNormalAnnotation(Java.NormalAnnotation na)
          Invoked by Java.NormalAnnotation.accept(Visitor.AnnotationVisitor)
 void visitNullLiteral(Java.NullLiteral nl)
          Invoked by Java.NullLiteral.accept(Visitor.RvalueVisitor)
 void visitPackage(Java.Package p)
          Invoked by Java.Package.accept(Visitor.AtomVisitor).
 void visitPackageMemberClassDeclaration(Java.PackageMemberClassDeclaration pmcd)
          Invoked by Java.PackageMemberClassDeclaration.accept(Visitor.TypeDeclarationVisitor)
 void visitPackageMemberInterfaceDeclaration(Java.PackageMemberInterfaceDeclaration pmid)
          Invoked by Java.PackageMemberInterfaceDeclaration.accept(Visitor.TypeDeclarationVisitor)
 void visitParameterAccess(Java.ParameterAccess pa)
          Invoked by Java.ParameterAccess.accept(Visitor.RvalueVisitor)
 void visitParenthesizedExpression(Java.ParenthesizedExpression pe)
          Invoked by Java.ParenthesizedExpression.accept(Visitor.LvalueVisitor)
 void visitQualifiedThisReference(Java.QualifiedThisReference qtr)
          Invoked by Java.QualifiedThisReference.accept(Visitor.RvalueVisitor)
 void visitReferenceType(Java.ReferenceType rt)
          Invoked by Java.ReferenceType.accept(Visitor.TypeVisitor)
 void visitReturnStatement(Java.ReturnStatement rs)
          Invoked by Java.ReturnStatement.accept(Visitor.BlockStatementVisitor)
 void visitRvalueMemberType(Java.RvalueMemberType rmt)
          Invoked by Java.RvalueMemberType.accept(Visitor.TypeVisitor)
 void visitSimpleConstant(Java.SimpleConstant sl)
          Invoked by Java.SimpleConstant.accept(Visitor.RvalueVisitor)
 void visitSimpleType(Java.SimpleType st)
          Invoked by Java.SimpleType.accept(Visitor.TypeVisitor)
 void visitSingleElementAnnotation(Java.SingleElementAnnotation sea)
          Invoked by Java.SingleElementAnnotation.accept(Visitor.AnnotationVisitor)
 void visitSingleStaticImportDeclaration(Java.CompilationUnit.SingleStaticImportDeclaration ssid)
          Invoked by Java.CompilationUnit.SingleStaticImportDeclaration.accept(Visitor.ImportVisitor)
 void visitSingleTypeImportDeclaration(Java.CompilationUnit.SingleTypeImportDeclaration stid)
          Invoked by Java.CompilationUnit.SingleTypeImportDeclaration.accept(Visitor.ImportVisitor)
 void visitStaticImportOnDemandDeclaration(Java.CompilationUnit.StaticImportOnDemandDeclaration siodd)
          Invoked by Java.CompilationUnit.StaticImportOnDemandDeclaration.accept(Visitor.ImportVisitor)
 void visitStringLiteral(Java.StringLiteral sl)
          Invoked by Java.StringLiteral.accept(Visitor.RvalueVisitor)
 void visitSuperclassFieldAccessExpression(Java.SuperclassFieldAccessExpression scfae)
          Invoked by Java.SuperclassFieldAccessExpression.accept(Visitor.LvalueVisitor)
 void visitSuperclassMethodInvocation(Java.SuperclassMethodInvocation smi)
          Invoked by Java.SuperclassMethodInvocation.accept(Visitor.RvalueVisitor)
 void visitSuperConstructorInvocation(Java.SuperConstructorInvocation sci)
          Invoked by Java.SuperConstructorInvocation.accept(Visitor.BlockStatementVisitor)
 void visitSwitchStatement(Java.SwitchStatement ss)
          Invoked by Java.SwitchStatement.accept(Visitor.BlockStatementVisitor)
 void visitSynchronizedStatement(Java.SynchronizedStatement ss)
          Invoked by Java.SynchronizedStatement.accept(Visitor.BlockStatementVisitor)
 void visitThisReference(Java.ThisReference tr)
          Invoked by Java.ArrayLength.accept(Visitor.RvalueVisitor)
 void visitThrowStatement(Java.ThrowStatement ts)
          Invoked by Java.ThrowStatement.accept(Visitor.BlockStatementVisitor)
 void visitTryStatement(Java.TryStatement ts)
          Invoked by Java.TryStatement.accept(Visitor.BlockStatementVisitor)
 void visitTypeImportOnDemandDeclaration(Java.CompilationUnit.TypeImportOnDemandDeclaration tiodd)
          Invoked by Java.CompilationUnit.TypeImportOnDemandDeclaration.accept(Visitor.ImportVisitor)
 void visitUnaryOperation(Java.UnaryOperation uo)
          Invoked by Java.UnaryOperation.accept(Visitor.RvalueVisitor)
 void visitWhileStatement(Java.WhileStatement ws)
          Invoked by Java.WhileStatement.accept(Visitor.BlockStatementVisitor)
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

pw

protected final java.io.PrintWriter pw
Where the visit...() methods print their text. Noice that this PrintWriter does not print to the output directly, but through an AutoIndentWriter.

Constructor Detail

UnparseVisitor

public UnparseVisitor(java.io.Writer w)
Method Detail

main

public static void main(java.lang.String[] args)
                 throws java.lang.Exception
Testing of parsing/unparsing.

Reads compilation units from the files named on the command line and unparses them to System.out.

Throws:
java.lang.Exception

unparse

public static void unparse(Java.CompilationUnit cu,
                           java.io.Writer w)
Unparses the given Java.CompilationUnit to the given Writer.


close

public void close()
Flushes all generated code.


unparseCompilationUnit

public void unparseCompilationUnit(Java.CompilationUnit cu)
Parameters:
cu - The compilation unit to unparse

visitSingleTypeImportDeclaration

public void visitSingleTypeImportDeclaration(Java.CompilationUnit.SingleTypeImportDeclaration stid)
Description copied from interface: Visitor.ImportVisitor
Invoked by Java.CompilationUnit.SingleTypeImportDeclaration.accept(Visitor.ImportVisitor)

Specified by:
visitSingleTypeImportDeclaration in interface Visitor.ImportVisitor

visitTypeImportOnDemandDeclaration

public void visitTypeImportOnDemandDeclaration(Java.CompilationUnit.TypeImportOnDemandDeclaration tiodd)
Description copied from interface: Visitor.ImportVisitor
Invoked by Java.CompilationUnit.TypeImportOnDemandDeclaration.accept(Visitor.ImportVisitor)

Specified by:
visitTypeImportOnDemandDeclaration in interface Visitor.ImportVisitor

visitSingleStaticImportDeclaration

public void visitSingleStaticImportDeclaration(Java.CompilationUnit.SingleStaticImportDeclaration ssid)
Description copied from interface: Visitor.ImportVisitor
Invoked by Java.CompilationUnit.SingleStaticImportDeclaration.accept(Visitor.ImportVisitor)

Specified by:
visitSingleStaticImportDeclaration in interface Visitor.ImportVisitor

visitStaticImportOnDemandDeclaration

public void visitStaticImportOnDemandDeclaration(Java.CompilationUnit.StaticImportOnDemandDeclaration siodd)
Description copied from interface: Visitor.ImportVisitor
Invoked by Java.CompilationUnit.StaticImportOnDemandDeclaration.accept(Visitor.ImportVisitor)

Specified by:
visitStaticImportOnDemandDeclaration in interface Visitor.ImportVisitor

visitLocalClassDeclaration

public void visitLocalClassDeclaration(Java.LocalClassDeclaration lcd)
Description copied from interface: Visitor.TypeDeclarationVisitor
Invoked by Java.LocalClassDeclaration.accept(Visitor.TypeDeclarationVisitor)

Specified by:
visitLocalClassDeclaration in interface Visitor.TypeDeclarationVisitor

visitMemberClassDeclaration

public void visitMemberClassDeclaration(Java.MemberClassDeclaration mcd)
Description copied from interface: Visitor.TypeDeclarationVisitor
Invoked by Java.MemberClassDeclaration.accept(Visitor.TypeDeclarationVisitor)

Specified by:
visitMemberClassDeclaration in interface Visitor.TypeBodyDeclarationVisitor
Specified by:
visitMemberClassDeclaration in interface Visitor.TypeDeclarationVisitor

visitMemberInterfaceDeclaration

public void visitMemberInterfaceDeclaration(Java.MemberInterfaceDeclaration mid)
Description copied from interface: Visitor.TypeDeclarationVisitor
Invoked by Java.MemberInterfaceDeclaration.accept(Visitor.TypeDeclarationVisitor)

Specified by:
visitMemberInterfaceDeclaration in interface Visitor.TypeBodyDeclarationVisitor
Specified by:
visitMemberInterfaceDeclaration in interface Visitor.TypeDeclarationVisitor

visitPackageMemberClassDeclaration

public void visitPackageMemberClassDeclaration(Java.PackageMemberClassDeclaration pmcd)
Description copied from interface: Visitor.TypeDeclarationVisitor
Invoked by Java.PackageMemberClassDeclaration.accept(Visitor.TypeDeclarationVisitor)

Specified by:
visitPackageMemberClassDeclaration in interface Visitor.TypeDeclarationVisitor

visitPackageMemberInterfaceDeclaration

public void visitPackageMemberInterfaceDeclaration(Java.PackageMemberInterfaceDeclaration pmid)
Description copied from interface: Visitor.TypeDeclarationVisitor
Invoked by Java.PackageMemberInterfaceDeclaration.accept(Visitor.TypeDeclarationVisitor)

Specified by:
visitPackageMemberInterfaceDeclaration in interface Visitor.TypeDeclarationVisitor

visitConstructorDeclarator

public void visitConstructorDeclarator(Java.ConstructorDeclarator cd)
Description copied from interface: Visitor.FunctionDeclaratorVisitor
Invoked by Java.ConstructorDeclarator.accept(Visitor.TypeBodyDeclarationVisitor)

Specified by:
visitConstructorDeclarator in interface Visitor.FunctionDeclaratorVisitor

visitMethodDeclarator

public void visitMethodDeclarator(Java.MethodDeclarator md)
Description copied from interface: Visitor.FunctionDeclaratorVisitor
Invoked by Java.MethodDeclarator.accept(Visitor.TypeBodyDeclarationVisitor)

Specified by:
visitMethodDeclarator in interface Visitor.FunctionDeclaratorVisitor

visitFieldDeclaration

public void visitFieldDeclaration(Java.FieldDeclaration fd)
Description copied from interface: Visitor.TypeBodyDeclarationVisitor
Invoked by Java.FieldDeclaration.accept(Visitor.TypeBodyDeclarationVisitor)

Specified by:
visitFieldDeclaration in interface Visitor.BlockStatementVisitor
Specified by:
visitFieldDeclaration in interface Visitor.TypeBodyDeclarationVisitor

visitInitializer

public void visitInitializer(Java.Initializer i)
Description copied from interface: Visitor.TypeBodyDeclarationVisitor
Invoked by Java.Initializer.accept(Visitor.TypeBodyDeclarationVisitor)

Specified by:
visitInitializer in interface Visitor.BlockStatementVisitor
Specified by:
visitInitializer in interface Visitor.TypeBodyDeclarationVisitor

visitBlock

public void visitBlock(Java.Block b)
Description copied from interface: Visitor.BlockStatementVisitor
Invoked by Java.Block.accept(Visitor.BlockStatementVisitor)

Specified by:
visitBlock in interface Visitor.BlockStatementVisitor

visitBreakStatement

public void visitBreakStatement(Java.BreakStatement bs)
Description copied from interface: Visitor.BlockStatementVisitor
Invoked by Java.BreakStatement.accept(Visitor.BlockStatementVisitor)

Specified by:
visitBreakStatement in interface Visitor.BlockStatementVisitor

visitContinueStatement

public void visitContinueStatement(Java.ContinueStatement cs)
Description copied from interface: Visitor.BlockStatementVisitor
Invoked by Java.ContinueStatement.accept(Visitor.BlockStatementVisitor)

Specified by:
visitContinueStatement in interface Visitor.BlockStatementVisitor

visitAssertStatement

public void visitAssertStatement(Java.AssertStatement as)
Description copied from interface: Visitor.BlockStatementVisitor
Invoked by Java.AssertStatement.accept(Visitor.BlockStatementVisitor)

Specified by:
visitAssertStatement in interface Visitor.BlockStatementVisitor

visitDoStatement

public void visitDoStatement(Java.DoStatement ds)
Description copied from interface: Visitor.BlockStatementVisitor
Invoked by Java.DoStatement.accept(Visitor.BlockStatementVisitor)

Specified by:
visitDoStatement in interface Visitor.BlockStatementVisitor

visitEmptyStatement

public void visitEmptyStatement(Java.EmptyStatement es)
Description copied from interface: Visitor.BlockStatementVisitor
Invoked by Java.EmptyStatement.accept(Visitor.BlockStatementVisitor)

Specified by:
visitEmptyStatement in interface Visitor.BlockStatementVisitor

visitExpressionStatement

public void visitExpressionStatement(Java.ExpressionStatement es)
Description copied from interface: Visitor.BlockStatementVisitor
Invoked by Java.ExpressionStatement.accept(Visitor.BlockStatementVisitor)

Specified by:
visitExpressionStatement in interface Visitor.BlockStatementVisitor

visitForStatement

public void visitForStatement(Java.ForStatement fs)
Description copied from interface: Visitor.BlockStatementVisitor
Invoked by Java.ForStatement.accept(Visitor.BlockStatementVisitor)

Specified by:
visitForStatement in interface Visitor.BlockStatementVisitor

visitForEachStatement

public void visitForEachStatement(Java.ForEachStatement fes)
Description copied from interface: Visitor.BlockStatementVisitor
Invoked by Java.ForEachStatement.accept(Visitor.BlockStatementVisitor)

Specified by:
visitForEachStatement in interface Visitor.BlockStatementVisitor

visitIfStatement

public void visitIfStatement(Java.IfStatement is)
Description copied from interface: Visitor.BlockStatementVisitor
Invoked by Java.IfStatement.accept(Visitor.BlockStatementVisitor)

Specified by:
visitIfStatement in interface Visitor.BlockStatementVisitor

visitLabeledStatement

public void visitLabeledStatement(Java.LabeledStatement ls)
Description copied from interface: Visitor.BlockStatementVisitor
Invoked by Java.LabeledStatement.accept(Visitor.BlockStatementVisitor)

Specified by:
visitLabeledStatement in interface Visitor.BlockStatementVisitor

visitLocalClassDeclarationStatement

public void visitLocalClassDeclarationStatement(Java.LocalClassDeclarationStatement lcds)
Description copied from interface: Visitor.BlockStatementVisitor
Invoked by Java.LocalClassDeclarationStatement.accept(Visitor.BlockStatementVisitor)

Specified by:
visitLocalClassDeclarationStatement in interface Visitor.BlockStatementVisitor

visitLocalVariableDeclarationStatement

public void visitLocalVariableDeclarationStatement(Java.LocalVariableDeclarationStatement lvds)
Description copied from interface: Visitor.BlockStatementVisitor
Invoked by Java.LocalVariableDeclarationStatement.accept(Visitor.BlockStatementVisitor)

Specified by:
visitLocalVariableDeclarationStatement in interface Visitor.BlockStatementVisitor

visitReturnStatement

public void visitReturnStatement(Java.ReturnStatement rs)
Description copied from interface: Visitor.BlockStatementVisitor
Invoked by Java.ReturnStatement.accept(Visitor.BlockStatementVisitor)

Specified by:
visitReturnStatement in interface Visitor.BlockStatementVisitor

visitSwitchStatement

public void visitSwitchStatement(Java.SwitchStatement ss)
Description copied from interface: Visitor.BlockStatementVisitor
Invoked by Java.SwitchStatement.accept(Visitor.BlockStatementVisitor)

Specified by:
visitSwitchStatement in interface Visitor.BlockStatementVisitor

visitSynchronizedStatement

public void visitSynchronizedStatement(Java.SynchronizedStatement ss)
Description copied from interface: Visitor.BlockStatementVisitor
Invoked by Java.SynchronizedStatement.accept(Visitor.BlockStatementVisitor)

Specified by:
visitSynchronizedStatement in interface Visitor.BlockStatementVisitor

visitThrowStatement

public void visitThrowStatement(Java.ThrowStatement ts)
Description copied from interface: Visitor.BlockStatementVisitor
Invoked by Java.ThrowStatement.accept(Visitor.BlockStatementVisitor)

Specified by:
visitThrowStatement in interface Visitor.BlockStatementVisitor

visitTryStatement

public void visitTryStatement(Java.TryStatement ts)
Description copied from interface: Visitor.BlockStatementVisitor
Invoked by Java.TryStatement.accept(Visitor.BlockStatementVisitor)

Specified by:
visitTryStatement in interface Visitor.BlockStatementVisitor

visitWhileStatement

public void visitWhileStatement(Java.WhileStatement ws)
Description copied from interface: Visitor.BlockStatementVisitor
Invoked by Java.WhileStatement.accept(Visitor.BlockStatementVisitor)

Specified by:
visitWhileStatement in interface Visitor.BlockStatementVisitor

visitMethodInvocation

public void visitMethodInvocation(Java.MethodInvocation mi)
Description copied from interface: Visitor.RvalueVisitor
Invoked by Java.MethodInvocation.accept(Visitor.RvalueVisitor)

Specified by:
visitMethodInvocation in interface Visitor.RvalueVisitor

visitAlternateConstructorInvocation

public void visitAlternateConstructorInvocation(Java.AlternateConstructorInvocation aci)
Description copied from interface: Visitor.BlockStatementVisitor
Invoked by Java.AlternateConstructorInvocation.accept(Visitor.BlockStatementVisitor)

Specified by:
visitAlternateConstructorInvocation in interface Visitor.BlockStatementVisitor

visitSuperConstructorInvocation

public void visitSuperConstructorInvocation(Java.SuperConstructorInvocation sci)
Description copied from interface: Visitor.BlockStatementVisitor
Invoked by Java.SuperConstructorInvocation.accept(Visitor.BlockStatementVisitor)

Specified by:
visitSuperConstructorInvocation in interface Visitor.BlockStatementVisitor

visitNewClassInstance

public void visitNewClassInstance(Java.NewClassInstance nci)
Description copied from interface: Visitor.RvalueVisitor
Invoked by Java.NewClassInstance.accept(Visitor.RvalueVisitor)

Specified by:
visitNewClassInstance in interface Visitor.RvalueVisitor

visitAssignment

public void visitAssignment(Java.Assignment a)
Description copied from interface: Visitor.RvalueVisitor
Invoked by Java.Assignment.accept(Visitor.RvalueVisitor)

Specified by:
visitAssignment in interface Visitor.RvalueVisitor

visitAmbiguousName

public void visitAmbiguousName(Java.AmbiguousName an)
Description copied from interface: Visitor.LvalueVisitor
Invoked by Java.AmbiguousName.accept(Visitor.LvalueVisitor)

Specified by:
visitAmbiguousName in interface Visitor.LvalueVisitor

visitArrayAccessExpression

public void visitArrayAccessExpression(Java.ArrayAccessExpression aae)
Description copied from interface: Visitor.LvalueVisitor
Invoked by Java.ArrayAccessExpression.accept(Visitor.LvalueVisitor)

Specified by:
visitArrayAccessExpression in interface Visitor.LvalueVisitor

visitArrayLength

public void visitArrayLength(Java.ArrayLength al)
Description copied from interface: Visitor.RvalueVisitor
Invoked by Java.ArrayLength.accept(Visitor.RvalueVisitor)

Specified by:
visitArrayLength in interface Visitor.RvalueVisitor

visitArrayType

public void visitArrayType(Java.ArrayType at)
Description copied from interface: Visitor.TypeVisitor
Invoked by Java.ArrayType.accept(Visitor.TypeVisitor)

Specified by:
visitArrayType in interface Visitor.TypeVisitor

visitBasicType

public void visitBasicType(Java.BasicType bt)
Description copied from interface: Visitor.TypeVisitor
Invoked by Java.BasicType.accept(Visitor.TypeVisitor)

Specified by:
visitBasicType in interface Visitor.TypeVisitor

visitBinaryOperation

public void visitBinaryOperation(Java.BinaryOperation bo)
Description copied from interface: Visitor.RvalueVisitor
Invoked by Java.BinaryOperation.accept(Visitor.RvalueVisitor)

Specified by:
visitBinaryOperation in interface Visitor.RvalueVisitor

visitCast

public void visitCast(Java.Cast c)
Description copied from interface: Visitor.RvalueVisitor
Invoked by Java.Cast.accept(Visitor.RvalueVisitor)

Specified by:
visitCast in interface Visitor.RvalueVisitor

visitClassLiteral

public void visitClassLiteral(Java.ClassLiteral cl)
Description copied from interface: Visitor.RvalueVisitor
Invoked by Java.ClassLiteral.accept(Visitor.RvalueVisitor)

Specified by:
visitClassLiteral in interface Visitor.RvalueVisitor

visitConditionalExpression

public void visitConditionalExpression(Java.ConditionalExpression ce)
Description copied from interface: Visitor.RvalueVisitor
Invoked by Java.ConditionalExpression.accept(Visitor.RvalueVisitor)

Specified by:
visitConditionalExpression in interface Visitor.RvalueVisitor

visitCrement

public void visitCrement(Java.Crement c)
Description copied from interface: Visitor.RvalueVisitor
Invoked by Java.Crement.accept(Visitor.RvalueVisitor)

Specified by:
visitCrement in interface Visitor.RvalueVisitor

visitFieldAccess

public void visitFieldAccess(Java.FieldAccess fa)
Description copied from interface: Visitor.LvalueVisitor
Invoked by Java.FieldAccess.accept(Visitor.LvalueVisitor)

Specified by:
visitFieldAccess in interface Visitor.LvalueVisitor

visitFieldAccessExpression

public void visitFieldAccessExpression(Java.FieldAccessExpression fae)
Description copied from interface: Visitor.LvalueVisitor
Invoked by Java.FieldAccessExpression.accept(Visitor.LvalueVisitor)

Specified by:
visitFieldAccessExpression in interface Visitor.LvalueVisitor

visitSuperclassFieldAccessExpression

public void visitSuperclassFieldAccessExpression(Java.SuperclassFieldAccessExpression scfae)
Description copied from interface: Visitor.LvalueVisitor
Invoked by Java.SuperclassFieldAccessExpression.accept(Visitor.LvalueVisitor)

Specified by:
visitSuperclassFieldAccessExpression in interface Visitor.LvalueVisitor

visitInstanceof

public void visitInstanceof(Java.Instanceof io)
Description copied from interface: Visitor.RvalueVisitor
Invoked by Java.Instanceof.accept(Visitor.RvalueVisitor)

Specified by:
visitInstanceof in interface Visitor.RvalueVisitor

visitIntegerLiteral

public void visitIntegerLiteral(Java.IntegerLiteral il)
Description copied from interface: Visitor.RvalueVisitor
Invoked by Java.IntegerLiteral.accept(Visitor.RvalueVisitor)

Specified by:
visitIntegerLiteral in interface Visitor.RvalueVisitor

visitFloatingPointLiteral

public void visitFloatingPointLiteral(Java.FloatingPointLiteral fpl)
Description copied from interface: Visitor.RvalueVisitor
Invoked by Java.FloatingPointLiteral.accept(Visitor.RvalueVisitor)

Specified by:
visitFloatingPointLiteral in interface Visitor.RvalueVisitor

visitBooleanLiteral

public void visitBooleanLiteral(Java.BooleanLiteral bl)
Description copied from interface: Visitor.RvalueVisitor
Invoked by Java.BooleanLiteral.accept(Visitor.RvalueVisitor)

Specified by:
visitBooleanLiteral in interface Visitor.RvalueVisitor

visitCharacterLiteral

public void visitCharacterLiteral(Java.CharacterLiteral cl)
Description copied from interface: Visitor.RvalueVisitor
Invoked by Java.CharacterLiteral.accept(Visitor.RvalueVisitor)

Specified by:
visitCharacterLiteral in interface Visitor.RvalueVisitor

visitStringLiteral

public void visitStringLiteral(Java.StringLiteral sl)
Description copied from interface: Visitor.RvalueVisitor
Invoked by Java.StringLiteral.accept(Visitor.RvalueVisitor)

Specified by:
visitStringLiteral in interface Visitor.RvalueVisitor

visitNullLiteral

public void visitNullLiteral(Java.NullLiteral nl)
Description copied from interface: Visitor.RvalueVisitor
Invoked by Java.NullLiteral.accept(Visitor.RvalueVisitor)

Specified by:
visitNullLiteral in interface Visitor.RvalueVisitor

visitSimpleConstant

public void visitSimpleConstant(Java.SimpleConstant sl)
Description copied from interface: Visitor.RvalueVisitor
Invoked by Java.SimpleConstant.accept(Visitor.RvalueVisitor)

Specified by:
visitSimpleConstant in interface Visitor.RvalueVisitor

visitLocalVariableAccess

public void visitLocalVariableAccess(Java.LocalVariableAccess lva)
Description copied from interface: Visitor.LvalueVisitor
Invoked by Java.LocalVariableAccess.accept(Visitor.LvalueVisitor)

Specified by:
visitLocalVariableAccess in interface Visitor.LvalueVisitor

visitNewArray

public void visitNewArray(Java.NewArray na)
Description copied from interface: Visitor.RvalueVisitor
Invoked by Java.NewArray.accept(Visitor.RvalueVisitor)

Specified by:
visitNewArray in interface Visitor.RvalueVisitor

visitNewInitializedArray

public void visitNewInitializedArray(Java.NewInitializedArray nai)
Description copied from interface: Visitor.RvalueVisitor
Invoked by Java.NewInitializedArray.accept(Visitor.RvalueVisitor)

Specified by:
visitNewInitializedArray in interface Visitor.RvalueVisitor

visitPackage

public void visitPackage(Java.Package p)
Description copied from interface: Visitor.AtomVisitor
Invoked by Java.Package.accept(Visitor.AtomVisitor).

Specified by:
visitPackage in interface Visitor.AtomVisitor

visitParameterAccess

public void visitParameterAccess(Java.ParameterAccess pa)
Description copied from interface: Visitor.RvalueVisitor
Invoked by Java.ParameterAccess.accept(Visitor.RvalueVisitor)

Specified by:
visitParameterAccess in interface Visitor.RvalueVisitor

visitQualifiedThisReference

public void visitQualifiedThisReference(Java.QualifiedThisReference qtr)
Description copied from interface: Visitor.RvalueVisitor
Invoked by Java.QualifiedThisReference.accept(Visitor.RvalueVisitor)

Specified by:
visitQualifiedThisReference in interface Visitor.RvalueVisitor

visitReferenceType

public void visitReferenceType(Java.ReferenceType rt)
Description copied from interface: Visitor.TypeVisitor
Invoked by Java.ReferenceType.accept(Visitor.TypeVisitor)

Specified by:
visitReferenceType in interface Visitor.TypeVisitor

visitRvalueMemberType

public void visitRvalueMemberType(Java.RvalueMemberType rmt)
Description copied from interface: Visitor.TypeVisitor
Invoked by Java.RvalueMemberType.accept(Visitor.TypeVisitor)

Specified by:
visitRvalueMemberType in interface Visitor.TypeVisitor

visitSimpleType

public void visitSimpleType(Java.SimpleType st)
Description copied from interface: Visitor.TypeVisitor
Invoked by Java.SimpleType.accept(Visitor.TypeVisitor)

Specified by:
visitSimpleType in interface Visitor.TypeVisitor

visitSuperclassMethodInvocation

public void visitSuperclassMethodInvocation(Java.SuperclassMethodInvocation smi)
Description copied from interface: Visitor.RvalueVisitor
Invoked by Java.SuperclassMethodInvocation.accept(Visitor.RvalueVisitor)

Specified by:
visitSuperclassMethodInvocation in interface Visitor.RvalueVisitor

visitThisReference

public void visitThisReference(Java.ThisReference tr)
Description copied from interface: Visitor.RvalueVisitor
Invoked by Java.ArrayLength.accept(Visitor.RvalueVisitor)

Specified by:
visitThisReference in interface Visitor.RvalueVisitor

visitUnaryOperation

public void visitUnaryOperation(Java.UnaryOperation uo)
Description copied from interface: Visitor.RvalueVisitor
Invoked by Java.UnaryOperation.accept(Visitor.RvalueVisitor)

Specified by:
visitUnaryOperation in interface Visitor.RvalueVisitor

visitParenthesizedExpression

public void visitParenthesizedExpression(Java.ParenthesizedExpression pe)
Description copied from interface: Visitor.LvalueVisitor
Invoked by Java.ParenthesizedExpression.accept(Visitor.LvalueVisitor)

Specified by:
visitParenthesizedExpression in interface Visitor.LvalueVisitor

visitAnonymousClassDeclaration

public void visitAnonymousClassDeclaration(Java.AnonymousClassDeclaration acd)
Description copied from interface: Visitor.TypeDeclarationVisitor
Invoked by Java.AnonymousClassDeclaration.accept(Visitor.TypeDeclarationVisitor)

Specified by:
visitAnonymousClassDeclaration in interface Visitor.TypeDeclarationVisitor

visitNewAnonymousClassInstance

public void visitNewAnonymousClassInstance(Java.NewAnonymousClassInstance naci)
Description copied from interface: Visitor.RvalueVisitor
Invoked by Java.NewAnonymousClassInstance.accept(Visitor.RvalueVisitor)

Specified by:
visitNewAnonymousClassInstance in interface Visitor.RvalueVisitor

visitMarkerAnnotation

public void visitMarkerAnnotation(Java.MarkerAnnotation ma)
Description copied from interface: Visitor.AnnotationVisitor
Invoked by Java.MarkerAnnotation.accept(Visitor.AnnotationVisitor)

Specified by:
visitMarkerAnnotation in interface Visitor.AnnotationVisitor

visitNormalAnnotation

public void visitNormalAnnotation(Java.NormalAnnotation na)
Description copied from interface: Visitor.AnnotationVisitor
Invoked by Java.NormalAnnotation.accept(Visitor.AnnotationVisitor)

Specified by:
visitNormalAnnotation in interface Visitor.AnnotationVisitor

visitSingleElementAnnotation

public void visitSingleElementAnnotation(Java.SingleElementAnnotation sea)
Description copied from interface: Visitor.AnnotationVisitor
Invoked by Java.SingleElementAnnotation.accept(Visitor.AnnotationVisitor)

Specified by:
visitSingleElementAnnotation in interface Visitor.AnnotationVisitor

visitElementValueArrayInitializer

public void visitElementValueArrayInitializer(Java.ElementValueArrayInitializer evai)
Description copied from interface: Visitor.ElementValueVisitor
Invoked by Java.ElementValueArrayInitializer.accept(Visitor.ElementValueVisitor)

Specified by:
visitElementValueArrayInitializer in interface Visitor.ElementValueVisitor

janino.net