Package org.codehaus.groovy.ast.builder
Class AstStringCompiler
java.lang.Object
org.codehaus.groovy.ast.builder.AstStringCompiler
This class handles converting Strings to ASTNode lists.
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionCompiles the specified source code and returns its statement block and any declared types.compile(String script, CompilePhase compilePhase, boolean statementsOnly) Compiles the specified source code and returns its statement block, the script class (if desired) and any declared types.
- 
Constructor Details- 
AstStringCompilerpublic AstStringCompiler()
 
- 
- 
Method Details- 
compileCompiles the specified source code and returns its statement block and any declared types.- Parameters:
- script- a Groovy script in String form
- Since:
- 3.0.0
 
- 
compileCompiles the specified source code and returns its statement block, the script class (if desired) and any declared types.- Parameters:
- script- a Groovy script in String form
- compilePhase- the last compilation phase to complete
- statementsOnly- if- true, exclude the script class from the result
- Since:
- 1.7.0
 
 
-