@CompileStatic class AstNodeToScriptVisitor extends org.codehaus.groovy.control.CompilationUnit$PrimaryClassNodeOperation
An adapter from ASTNode tree to source code.
| Type | Name and description | 
|---|---|
String  | 
                            _indent | 
                        
Stack<String>  | 
                            classNameStack | 
                        
boolean  | 
                            readyToIndent | 
                        
boolean  | 
                            scriptHasBeenVisited | 
                        
boolean  | 
                            showScriptClass | 
                        
boolean  | 
                            showScriptFreeForm | 
                        
| Constructor and description | 
|---|
                                AstNodeToScriptVisitor
                                (Writer writer, boolean showScriptFreeForm = true, boolean showScriptClass = true) | 
                        
| Methods inherited from class | Name | 
|---|---|
class org.codehaus.groovy.control.CompilationUnit$PrimaryClassNodeOperation | 
                            org.codehaus.groovy.control.CompilationUnit$PrimaryClassNodeOperation#call(org.codehaus.groovy.control.SourceUnit, org.codehaus.groovy.classgen.GeneratorContext, org.codehaus.groovy.ast.ClassNode), org.codehaus.groovy.control.CompilationUnit$PrimaryClassNodeOperation#needSortedInput(), org.codehaus.groovy.control.CompilationUnit$PrimaryClassNodeOperation#wait(), org.codehaus.groovy.control.CompilationUnit$PrimaryClassNodeOperation#wait(long, int), org.codehaus.groovy.control.CompilationUnit$PrimaryClassNodeOperation#wait(long), org.codehaus.groovy.control.CompilationUnit$PrimaryClassNodeOperation#equals(java.lang.Object), org.codehaus.groovy.control.CompilationUnit$PrimaryClassNodeOperation#toString(), org.codehaus.groovy.control.CompilationUnit$PrimaryClassNodeOperation#hashCode(), org.codehaus.groovy.control.CompilationUnit$PrimaryClassNodeOperation#getClass(), org.codehaus.groovy.control.CompilationUnit$PrimaryClassNodeOperation#notify(), org.codehaus.groovy.control.CompilationUnit$PrimaryClassNodeOperation#notifyAll() | 
                        
class Object | 
                            wait, wait, wait, equals, toString, hashCode, getClass, notify, notifyAll | 
                        
Prints out the type, safely handling arrays.
Copyright © 2003-2018 The Apache Software Foundation. All rights reserved.