Package org.codehaus.groovy.control
Interface ParserPlugin
- All Known Implementing Classes:
 Antlr4ParserPlugin
public interface ParserPlugin
A simple extension point to allow us to switch between the classic Groovy parser and the new Antlr based parser(s).
- 
Method Summary
Modifier and TypeMethodDescriptionstatic ModuleNodebuildAST(CharSequence sourceText, CompilerConfiguration config, GroovyClassLoader loader, ErrorCollector errors) buildAST(SourceUnit sourceUnit, ClassLoader classLoader, Reduction cst) parseCST(SourceUnit sourceUnit, Reader reader)  
- 
Method Details
- 
parseCST
- Throws:
 CompilationFailedException
 - 
buildAST
ModuleNode buildAST(SourceUnit sourceUnit, ClassLoader classLoader, Reduction cst) throws ParserException - Throws:
 ParserException
 - 
buildAST
static ModuleNode buildAST(CharSequence sourceText, CompilerConfiguration config, GroovyClassLoader loader, ErrorCollector errors) throws CompilationFailedException - Throws:
 CompilationFailedException
 
 -