|
Groovy Documentation | |||||||
FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | PROPERTY | CONSTR | METHOD | DETAIL: FIELD | PROPERTY | CONSTR | METHOD |
java.lang.Object org.codehaus.groovy.control.CompilationUnit.PrimaryClassNodeOperation groovy.inspect.swingui.AstNodeToScriptVisitor
class AstNodeToScriptVisitor extends PrimaryClassNodeOperation
An adapter from ASTNode tree to source code.
Property Summary | |
---|---|
java.lang.String |
_indent
|
java.util.Stack |
classNameStack
|
boolean |
readyToIndent
|
boolean |
scriptHasBeenVisited
|
boolean |
showScriptClass
|
boolean |
showScriptFreeForm
|
Constructor Summary | |
AstNodeToScriptVisitor(java.io.Writer writer, boolean showScriptFreeForm = true, boolean showScriptClass = true)
|
Property Detail |
---|
java.lang.String _indent
java.util.Stack classNameStack
boolean readyToIndent
boolean scriptHasBeenVisited
boolean showScriptClass
boolean showScriptFreeForm
Constructor Detail |
---|
AstNodeToScriptVisitor(java.io.Writer writer, boolean showScriptFreeForm = true, boolean showScriptClass = true)
Method Detail |
---|
void call(SourceUnit source, GeneratorContext context, ClassNode classNode)
java.lang.Object indented(Closure block)
void print(java.lang.Object parameter)
java.lang.Object printDoubleBreak()
java.lang.Object printLineBreak()
java.lang.Object println(java.lang.Object parameter)
void visitAnnotationNode(AnnotationNode node)
@Override void visitArgumentlistExpression(ArgumentListExpression expression, boolean showTypes = false)
@Override void visitArrayExpression(ArrayExpression expression)
@Override void visitAssertStatement(AssertStatement statement)
@Override void visitAttributeExpression(AttributeExpression attributeExpression)
@Override void visitBinaryExpression(BinaryExpression expression)
@Override void visitBitwiseNegationExpression(BitwiseNegationExpression expression)
@Override void visitBlockStatement(BlockStatement block)
@Override void visitBooleanExpression(BooleanExpression expression)
@Override void visitBreakStatement(BreakStatement statement)
@Override void visitBytecodeExpression(BytecodeExpression expression)
@Override void visitCaseStatement(CaseStatement statement)
@Override void visitCastExpression(CastExpression expression)
@Override void visitCatchStatement(CatchStatement statement)
@Override void visitClass(ClassNode node)
@Override void visitClassExpression(ClassExpression expression)
@Override void visitClosureExpression(ClosureExpression expression)
@Override void visitClosureListExpression(ClosureListExpression expression)
@Override void visitConstantExpression(ConstantExpression expression, boolean unwrapQuotes = false)
@Override void visitConstructor(ConstructorNode node)
@Override void visitConstructorCallExpression(ConstructorCallExpression expression)
@Override void visitContinueStatement(ContinueStatement statement)
@Override void visitDeclarationExpression(DeclarationExpression expression)
@Override void visitDoWhileLoop(DoWhileStatement statement)
@Override void visitExpressionStatement(ExpressionStatement statement)
@Override void visitField(FieldNode node)
@Override void visitFieldExpression(FieldExpression expression)
@Override void visitForLoop(ForStatement statement)
@Override void visitGStringExpression(GStringExpression expression)
@Override void visitIfElse(IfStatement ifElse)
void visitImport(ImportNode node)
@Override void visitListExpression(ListExpression expression)
@Override void visitMapEntryExpression(MapEntryExpression expression)
@Override void visitMapExpression(MapExpression expression)
@Override void visitMethod(MethodNode node)
@Override void visitMethodCallExpression(MethodCallExpression expression)
@Override void visitMethodPointerExpression(MethodPointerExpression expression)
@Override void visitNotExpression(NotExpression expression)
void visitPackage(PackageNode packageNode)
@Override void visitPostfixExpression(PostfixExpression expression)
@Override void visitPrefixExpression(PrefixExpression expression)
@Override void visitProperty(PropertyNode node)
@Override void visitPropertyExpression(PropertyExpression expression)
@Override void visitRangeExpression(RangeExpression expression)
@Override void visitReturnStatement(ReturnStatement statement)
@Override void visitShortTernaryExpression(ElvisOperatorExpression expression)
@Override void visitSpreadExpression(SpreadExpression expression)
@Override void visitSpreadMapExpression(SpreadMapExpression expression)
@Override void visitStaticMethodCallExpression(StaticMethodCallExpression expression)
@Override void visitSwitch(SwitchStatement statement)
@Override void visitSynchronizedStatement(SynchronizedStatement statement)
@Override void visitTernaryExpression(TernaryExpression expression)
@Override void visitThrowStatement(ThrowStatement statement)
@Override void visitTryCatchFinally(TryCatchStatement statement)
@Override void visitTupleExpression(TupleExpression expression)
void visitType(ClassNode classNode)
classNode
- classnode
@Override void visitUnaryMinusExpression(UnaryMinusExpression expression)
@Override void visitUnaryPlusExpression(UnaryPlusExpression expression)
@Override void visitVariableExpression(VariableExpression expression, boolean spacePad = true)
@Override void visitWhileLoop(WhileStatement statement)
Groovy Documentation