Package org.codehaus.groovy.control
Interface ParserPlugin
- All Known Implementing Classes:
- Antlr4ParserPlugin,- AntlrParserPlugin
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 SummaryModifier and Type Method Description static ModuleNodebuildAST(java.lang.CharSequence sourceText, CompilerConfiguration config, GroovyClassLoader loader, ErrorCollector errors)ModuleNodebuildAST(SourceUnit sourceUnit, java.lang.ClassLoader classLoader, Reduction cst)ReductionparseCST(SourceUnit sourceUnit, java.io.Reader reader)
- 
Method Details- 
parseCST- Throws:
- CompilationFailedException
 
- 
buildASTModuleNode buildAST(SourceUnit sourceUnit, java.lang.ClassLoader classLoader, Reduction cst) throws ParserException- Throws:
- ParserException
 
- 
buildASTstatic ModuleNode buildAST(java.lang.CharSequence sourceText, CompilerConfiguration config, GroovyClassLoader loader, ErrorCollector errors) throws CompilationFailedException- Throws:
- CompilationFailedException
 
 
-