public class JavaWriterVisitor extends Object implements AstNodeVisitor
| Constructor and Description |
|---|
JavaWriterVisitor() |
| Modifier and Type | Method and Description |
|---|---|
void |
clear() |
void |
visit(AnnotationNode annotation) |
void |
visit(AnonymousClassExpr anonymousClassExpr) |
void |
visit(ArithmeticOperationExpr arithmeticOperationExpr) |
void |
visit(ArrayExpr expr) |
void |
visit(AssignmentExpr assignmentExpr) |
void |
visit(AssignmentOperationExpr assignmentOperationExpr) |
void |
visit(BlockComment blockComment) |
void |
visit(BlockStatement blockStatement) |
void |
visit(BreakStatement breakStatement) |
void |
visit(CastExpr castExpr) |
void |
visit(ClassDefinition classDefinition) |
void |
visit(CommentStatement commentStatement) |
void |
visit(ConcreteReference reference) |
void |
visit(EmptyLineStatement emptyLineStatement) |
void |
visit(EnumRefExpr enumRefExpr) |
void |
visit(ExprStatement exprStatement)
=============================== STATEMENTS ===============================
|
void |
visit(ForStatement forStatement) |
void |
visit(GeneralForStatement generalForStatement) |
void |
visit(IdentifierNode identifier)
Writes the syntatically-correct Java code representation of this node.
|
void |
visit(IfStatement ifStatement) |
void |
visit(InstanceofExpr instanceofExpr) |
void |
visit(JavaDocComment javaDocComment) |
void |
visit(LambdaExpr lambdaExpr) |
void |
visit(LineComment lineComment)
=============================== COMMENT ===============================
|
void |
visit(LogicalOperationExpr logicalOperationExpr) |
void |
visit(MethodDefinition methodDefinition)
=============================== OTHER ===============================
|
void |
visit(MethodInvocationExpr methodInvocationExpr) |
void |
visit(NewObjectExpr newObjectExpr) |
void |
visit(PackageInfoDefinition packageInfoDefinition) |
void |
visit(ReferenceConstructorExpr referenceConstructorExpr) |
void |
visit(RelationalOperationExpr relationalOperationExpr) |
void |
visit(ReturnExpr returnExpr) |
void |
visit(ScopeNode scope) |
void |
visit(SynchronizedStatement synchronizedStatement) |
void |
visit(TernaryExpr ternaryExpr) |
void |
visit(ThrowExpr throwExpr) |
void |
visit(TryCatchStatement tryCatchStatement) |
void |
visit(TypeNode type) |
void |
visit(UnaryOperationExpr unaryOperationExpr) |
void |
visit(ValueExpr valueExpr)
=============================== EXPRESSIONS ===============================
|
void |
visit(VaporReference reference) |
void |
visit(VariableExpr variableExpr) |
void |
visit(WhileStatement whileStatement) |
String |
write() |
public void clear()
public String write()
public void visit(IdentifierNode identifier)
AstNodeVisitorvisit in interface AstNodeVisitorpublic void visit(TypeNode type)
visit in interface AstNodeVisitorpublic void visit(ScopeNode scope)
visit in interface AstNodeVisitorpublic void visit(ArrayExpr expr)
visit in interface AstNodeVisitorpublic void visit(AnnotationNode annotation)
visit in interface AstNodeVisitorpublic void visit(ConcreteReference reference)
visit in interface AstNodeVisitorpublic void visit(VaporReference reference)
visit in interface AstNodeVisitorpublic void visit(ValueExpr valueExpr)
visit in interface AstNodeVisitorpublic void visit(VariableExpr variableExpr)
visit in interface AstNodeVisitorpublic void visit(TernaryExpr ternaryExpr)
visit in interface AstNodeVisitorpublic void visit(AssignmentExpr assignmentExpr)
visit in interface AstNodeVisitorpublic void visit(MethodInvocationExpr methodInvocationExpr)
visit in interface AstNodeVisitorpublic void visit(CastExpr castExpr)
visit in interface AstNodeVisitorpublic void visit(AnonymousClassExpr anonymousClassExpr)
visit in interface AstNodeVisitorpublic void visit(ThrowExpr throwExpr)
visit in interface AstNodeVisitorpublic void visit(InstanceofExpr instanceofExpr)
visit in interface AstNodeVisitorpublic void visit(NewObjectExpr newObjectExpr)
visit in interface AstNodeVisitorpublic void visit(EnumRefExpr enumRefExpr)
visit in interface AstNodeVisitorpublic void visit(ReturnExpr returnExpr)
visit in interface AstNodeVisitorpublic void visit(ReferenceConstructorExpr referenceConstructorExpr)
visit in interface AstNodeVisitorpublic void visit(ArithmeticOperationExpr arithmeticOperationExpr)
visit in interface AstNodeVisitorpublic void visit(UnaryOperationExpr unaryOperationExpr)
visit in interface AstNodeVisitorpublic void visit(RelationalOperationExpr relationalOperationExpr)
visit in interface AstNodeVisitorpublic void visit(LogicalOperationExpr logicalOperationExpr)
visit in interface AstNodeVisitorpublic void visit(AssignmentOperationExpr assignmentOperationExpr)
visit in interface AstNodeVisitorpublic void visit(LambdaExpr lambdaExpr)
visit in interface AstNodeVisitorpublic void visit(ExprStatement exprStatement)
visit in interface AstNodeVisitorpublic void visit(BlockStatement blockStatement)
visit in interface AstNodeVisitorpublic void visit(IfStatement ifStatement)
visit in interface AstNodeVisitorpublic void visit(ForStatement forStatement)
visit in interface AstNodeVisitorpublic void visit(GeneralForStatement generalForStatement)
visit in interface AstNodeVisitorpublic void visit(WhileStatement whileStatement)
visit in interface AstNodeVisitorpublic void visit(TryCatchStatement tryCatchStatement)
visit in interface AstNodeVisitorpublic void visit(SynchronizedStatement synchronizedStatement)
visit in interface AstNodeVisitorpublic void visit(CommentStatement commentStatement)
visit in interface AstNodeVisitorpublic void visit(EmptyLineStatement emptyLineStatement)
visit in interface AstNodeVisitorpublic void visit(BreakStatement breakStatement)
visit in interface AstNodeVisitorpublic void visit(LineComment lineComment)
visit in interface AstNodeVisitorpublic void visit(BlockComment blockComment)
visit in interface AstNodeVisitorpublic void visit(JavaDocComment javaDocComment)
visit in interface AstNodeVisitorpublic void visit(MethodDefinition methodDefinition)
visit in interface AstNodeVisitorpublic void visit(ClassDefinition classDefinition)
visit in interface AstNodeVisitorpublic void visit(PackageInfoDefinition packageInfoDefinition)
visit in interface AstNodeVisitorCopyright © 2022 Google LLC. All rights reserved.