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

org::codehaus::janino::AstGeneratorVisitor Class Reference

Inheritance diagram for org::codehaus::janino::AstGeneratorVisitor:

List of all members.


Detailed Description

Author:
Eugene Kuleshov

Definition at line 47 of file AstGeneratorVisitor.java.


Public Member Functions

 AstGeneratorVisitor (Writer w, String name)
void generateCompilationUnit (Java.CompilationUnit cu)
void generateFormalParameter (FunctionDeclarator.FormalParameter fp)
void generateVariableDeclarator (Java.VariableDeclarator vd)
void visitAlternateConstructorInvocation (Java.AlternateConstructorInvocation aci)
void visitAmbiguousName (Java.AmbiguousName an)
void visitAnonymousClassDeclaration (Java.AnonymousClassDeclaration acd)
void visitArrayAccessExpression (Java.ArrayAccessExpression aae)
void visitArrayInitializer (Java.ArrayInitializer ai)
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 nia)
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 visitSingleTypeImportDeclaration (CompilationUnit.SingleTypeImportDeclaration stid)
void visitStaticImportOnDemandDeclaration (Java.CompilationUnit.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 visitTypeImportOnDemandDeclaration (CompilationUnit.TypeImportOnDemandDeclaration tiodd)
void visitUnaryOperation (Java.UnaryOperation uo)
void visitWhileStatement (Java.WhileStatement ws)

Static Public Member Functions

static void main (String[] args) throws Exception

Package Functions

void visitSingleTypeImportDeclaration (Java.CompilationUnit.SingleTypeImportDeclaration stid)

Private Member Functions

String arrayToString (String[] a)
String escape (char c)
String escape (String s)
void generateAbstractTypeDeclarationBody (Java.AbstractTypeDeclaration atd)
void generateAbstractTypeDeclarationBodyMethods (Java.AbstractTypeDeclaration atd)
void generateClassDeclarationBody (Java.ClassDeclaration cd)
void generateClassDeclarationBodyMethods (Java.ClassDeclaration cd)
void generateFormalParameters (FunctionDeclarator.FormalParameter[] parameters)
void generateIClass (IClass type)
void generateRvalues (Java.Rvalue[] values)
void generateSwitchBlockStatementGroup (SwitchStatement.SwitchBlockStatementGroup sbsg)
void generateTypes (Java.Type[] types)
void generateVariableDeclarators (Java.VariableDeclarator[] variables)
String getGenerateRvalues (Java.Rvalue[] values, String scope)
String getGenerateTypes (Java.Type[] types, String scope)
String getLocation (Java.Locatable locatable)
String getModifiers (short modifiers)
String getSuffix (Object o)
String printStringLiteral (String s)
void write ()
void write (String s)

Private Attributes

Set instances = new HashSet()
int level = 0
final String name
final PrintWriter pw

Static Private Attributes

static final String[] MOD_NAMES
static final short[] MODS
static final String TAB_FILLER = " "
static final int TAB_SIZE = 4

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

Generated by  Doxygen 1.6.0   Back to index