|
Groovy 2.2.0 | |||||||
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 | |
---|---|
String |
_indent
|
Stack |
classNameStack
|
boolean |
readyToIndent
|
boolean |
scriptHasBeenVisited
|
boolean |
showScriptClass
|
boolean |
showScriptFreeForm
|
Constructor Summary | |
AstNodeToScriptVisitor(Writer writer, boolean showScriptFreeForm = true, boolean showScriptClass = true)
|
Property Detail |
---|
String _indent
Stack classNameStack
boolean readyToIndent
boolean scriptHasBeenVisited
boolean showScriptClass
boolean showScriptFreeForm
Constructor Detail |
---|
AstNodeToScriptVisitor(Writer writer, boolean showScriptFreeForm = true, boolean showScriptClass = true)
Method Detail |
---|
void call(SourceUnit source, GeneratorContext context, ClassNode classNode)
def indented(Closure block)
void print(def parameter)
def printDoubleBreak()
def printLineBreak()
def println(def parameter)
void visitAnnotationNode(AnnotationNode node)
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)
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)
void visitVariableExpression(VariableExpression expression, boolean spacePad = true)
@Override void visitWhileLoop(WhileStatement statement)
Copyright © 2003-2013 The Codehaus. All rights reserved.