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

org::codehaus::janino::UnparseVisitor Class Reference

Inheritance diagram for org::codehaus::janino::UnparseVisitor:

List of all members.


Detailed Description

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

Definition at line 47 of file UnparseVisitor.java.


Public Member Functions

void unparseCompilationUnit (Java.CompilationUnit cu)
void unparseFormalParameter (Java.FunctionDeclarator.FormalParameter fp)
void unparseVariableDeclarator (Java.VariableDeclarator vd)
 UnparseVisitor (Writer w)
void visitAlternateConstructorInvocation (Java.AlternateConstructorInvocation aci)
void visitAmbiguousName (Java.AmbiguousName an)
void visitAnonymousClassDeclaration (Java.AnonymousClassDeclaration acd)
void visitArrayAccessExpression (Java.ArrayAccessExpression aae)
void visitArrayLength (Java.ArrayLength al)
void visitArrayType (Java.ArrayType at)
void visitAssignment (Java.Assignment a)
void visitBasicType (Java.BasicType bt)
void visitBinaryOperation (Java.BinaryOperation bo)
void visitBlock (Java.Block b)
void visitBreakStatement (Java.BreakStatement bs)
void visitCast (Java.Cast c)
void visitClassLiteral (Java.ClassLiteral cl)
void visitConditionalExpression (Java.ConditionalExpression ce)
void visitConstantValue (Java.ConstantValue cv)
void visitConstructorDeclarator (Java.ConstructorDeclarator cd)
void visitContinueStatement (Java.ContinueStatement cs)
void visitCrement (Java.Crement c)
void visitDoStatement (Java.DoStatement ds)
void visitEmptyStatement (Java.EmptyStatement es)
void visitExpressionStatement (Java.ExpressionStatement es)
void visitFieldAccess (Java.FieldAccess fa)
void visitFieldAccessExpression (Java.FieldAccessExpression fae)
void visitFieldDeclaration (Java.FieldDeclaration fd)
void visitForStatement (Java.ForStatement fs)
void visitIfStatement (Java.IfStatement is)
void visitInitializer (Java.Initializer i)
void visitInstanceof (Java.Instanceof io)
void visitLabeledStatement (Java.LabeledStatement ls)
void visitLiteral (Java.Literal l)
void visitLocalClassDeclaration (Java.LocalClassDeclaration lcd)
void visitLocalClassDeclarationStatement (Java.LocalClassDeclarationStatement lcds)
void visitLocalVariableAccess (Java.LocalVariableAccess lva)
void visitLocalVariableDeclarationStatement (Java.LocalVariableDeclarationStatement lvds)
void visitMemberClassDeclaration (Java.MemberClassDeclaration mcd)
void visitMemberInterfaceDeclaration (Java.MemberInterfaceDeclaration mid)
void visitMethodDeclarator (Java.MethodDeclarator md)
void visitMethodInvocation (Java.MethodInvocation mi)
void visitNewAnonymousClassInstance (Java.NewAnonymousClassInstance naci)
void visitNewArray (Java.NewArray na)
void visitNewClassInstance (Java.NewClassInstance nci)
void visitNewInitializedArray (Java.NewInitializedArray nai)
void visitPackage (Java.Package p)
void visitPackageMemberClassDeclaration (Java.PackageMemberClassDeclaration pmcd)
void visitPackageMemberInterfaceDeclaration (Java.PackageMemberInterfaceDeclaration pmid)
void visitParameterAccess (Java.ParameterAccess pa)
void visitParenthesizedExpression (Java.ParenthesizedExpression pe)
void visitQualifiedThisReference (Java.QualifiedThisReference qtr)
void visitReferenceType (Java.ReferenceType rt)
void visitReturnStatement (Java.ReturnStatement rs)
void visitRvalueMemberType (Java.RvalueMemberType rmt)
void visitSimpleType (Java.SimpleType st)
void visitSingleStaticImportDeclaration (Java.CompilationUnit.SingleStaticImportDeclaration ssid)
void visitSingleStaticImportDeclaration (SingleStaticImportDeclaration ssid)
void visitSingleTypeImportDeclaration (Java.CompilationUnit.SingleTypeImportDeclaration stid)
void visitStaticImportOnDemandDeclaration (Java.CompilationUnit.StaticImportOnDemandDeclaration siodd)
void visitStaticImportOnDemandDeclaration (StaticImportOnDemandDeclaration siodd)
void visitSuperclassFieldAccessExpression (Java.SuperclassFieldAccessExpression scfae)
void visitSuperclassMethodInvocation (Java.SuperclassMethodInvocation smi)
void visitSuperConstructorInvocation (Java.SuperConstructorInvocation sci)
void visitSwitchStatement (Java.SwitchStatement ss)
void visitSynchronizedStatement (Java.SynchronizedStatement ss)
void visitThisReference (Java.ThisReference tr)
void visitThrowStatement (Java.ThrowStatement ts)
void visitTryStatement (Java.TryStatement ts)
void visitTypeImportOnDemandDeclaration (Java.CompilationUnit.TypeImportOnDemandDeclaration tiodd)
void visitUnaryOperation (Java.UnaryOperation uo)
void visitWhileStatement (Java.WhileStatement ws)

Static Public Member Functions

static void main (String[] args) throws Exception
static void unparse (Java.CompilationUnit cu, Writer w)

Private Member Functions

void unparseAbstractTypeDeclarationBody (Java.AbstractTypeDeclaration atd)
void unparseArrayInitializerOrRvalue (Java.ArrayInitializerOrRvalue aiorv)
void unparseClassDeclarationBody (Java.ClassDeclaration cd)
void unparseDocComment (Java.DocCommentable dc)
void unparseFunctionDeclaratorRest (Java.FunctionDeclarator fd)
void unparseFunctionInvocationArguments (Java.Rvalue[] arguments)
void unparseInterfaceDeclaration (Java.InterfaceDeclaration id)
void unparseModifiers (short modifiers)
void unparseNamedClassDeclaration (Java.NamedClassDeclaration ncd)

Private Attributes

final AutoIndentWriter aiw
final PrintWriter pw

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

Generated by  Doxygen 1.6.0   Back to index