[Java] Class AstStringCompiler
- org.codehaus.groovy.ast.builder.AstStringCompiler
public class AstStringCompiler extends Object
This class handles converting Strings to ASTNode lists.
Methods Summary
Type Params | Return Type | Name and description |
---|---|---|
public List<ASTNode> |
compile(String script, CompilePhase compilePhase, boolean statementsOnly) Performs the String source to List of ASTNode. | |
public List<ASTNode> |
compile(String script) Performs the String source to List of statement ASTNode. |
Inherited Methods Summary
Methods inherited from class | Name |
---|---|
class Object | wait, wait, wait, equals, toString, hashCode, getClass, notify, notifyAll |
Method Detail
public List<ASTNode> compile(String script, CompilePhase compilePhase, boolean statementsOnly)
Performs the String source to List of ASTNode.
- Parameters:
-
script
- a Groovy script in String form -
compilePhase
- the int based CompilePhase to compile it to. - statementsOnly
public List<ASTNode> compile(String script)
Performs the String source to List of statement ASTNode.
- Parameters:
-
script
- a Groovy script in String form
- Since:
- 3.0.0
© 2003-2020 The Apache Software Foundation
Licensed under the Apache license.
https://docs.groovy-lang.org/3.0.7/html/gapi/org/codehaus/groovy/ast/builder/AstStringCompiler.html