Top Description Methods
org.codehaus.groovy.control

public Interface ParserPlugin

Known Direct Implementers
org.apache.groovy.parser.antlr4.Antlr4ParserPlugin, org.codehaus.groovy.antlr.AntlrParserPlugin
Imports
groovy.lang.GroovyClassLoader, org.codehaus.groovy.ast.ModuleNode, org.codehaus.groovy.syntax.ParserException, .Reduction, java.io.Reader

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 TypeMethod and Description
public ModuleNode
buildAST(SourceUnit sourceUnit, ClassLoader classLoader, Reduction cst)

public static ModuleNode
public Reduction
parseCST(SourceUnit sourceUnit, Reader reader)

Method Detail

buildASTback to summary
public ModuleNode buildAST(SourceUnit sourceUnit, ClassLoader classLoader, Reduction cst) throws ParserException
buildASTback to summary
public static ModuleNode buildAST(CharSequence sourceText, CompilerConfiguration config, GroovyClassLoader loader, ErrorCollector errors) throws CompilationFailedException
parseCSTback to summary
public Reduction parseCST(SourceUnit sourceUnit, Reader reader) throws CompilationFailedException