Package org.apache.groovy.parser.antlr4
Class Antlr4ParserPlugin
- java.lang.Object
-
- org.apache.groovy.parser.antlr4.Antlr4ParserPlugin
-
- All Implemented Interfaces:
ParserPlugin
public class Antlr4ParserPlugin extends Object implements ParserPlugin
A parser plugin for the new parser
-
-
Constructor Summary
Constructors Constructor Description Antlr4ParserPlugin(CompilerConfiguration compilerConfiguration)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ModuleNode
buildAST(SourceUnit sourceUnit, ClassLoader classLoader, Reduction cst)
ClassNode
makeType(String typeStr)
Create ClassNode instance for type stringReduction
parseCST(SourceUnit sourceUnit, Reader reader)
-
-
-
Constructor Detail
-
Antlr4ParserPlugin
public Antlr4ParserPlugin(CompilerConfiguration compilerConfiguration)
-
-
Method Detail
-
parseCST
public Reduction parseCST(SourceUnit sourceUnit, Reader reader) throws CompilationFailedException
- Specified by:
parseCST
in interfaceParserPlugin
- Throws:
CompilationFailedException
-
buildAST
public ModuleNode buildAST(SourceUnit sourceUnit, ClassLoader classLoader, Reduction cst) throws ParserException
- Specified by:
buildAST
in interfaceParserPlugin
- Throws:
ParserException
-
-