Package org.codehaus.groovy.ast.builder
Class AstStringCompiler
java.lang.Object
org.codehaus.groovy.ast.builder.AstStringCompiler
public class AstStringCompiler
extends java.lang.Object
This class handles converting Strings to ASTNode lists.
- 
Constructor SummaryConstructors Constructor Description AstStringCompiler()
- 
Method SummaryModifier and Type Method Description java.util.List<ASTNode>compile(java.lang.String script)Performs the String source toListof statementASTNode.java.util.List<ASTNode>compile(java.lang.String script, CompilePhase compilePhase, boolean statementsOnly)Performs the String source toListofASTNode.Methods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
- 
Constructor Details- 
AstStringCompilerpublic AstStringCompiler()
 
- 
- 
Method Details- 
compilepublic java.util.List<ASTNode> compile(java.lang.String script, CompilePhase compilePhase, boolean statementsOnly)Performs the String source toListofASTNode.- Parameters:
- script- a Groovy script in String form
- compilePhase- the int based CompilePhase to compile it to.
- statementsOnly-
- Returns:
- Listof- ASTNode
 
- 
compilePerforms the String source toListof statementASTNode.- Parameters:
- script- a Groovy script in String form
- Returns:
- Listof statement- ASTNode
- Since:
- 3.0.0
 
 
-