Package org.apache.groovy.parser
Class AbstractParser
- java.lang.Object
-
- org.apache.groovy.parser.AbstractParser
-
- Direct Known Subclasses:
Antlr2Parser
,Antlr4Parser
public abstract class AbstractParser extends Object
The base parser for creating a module node. The concrete compiler configuration can be specified by the sub-classes of the base parser(e.g. Antlr2Parser, Antlr4Parser)
-
-
Constructor Summary
Constructors Constructor Description AbstractParser()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected abstract CompilerConfiguration
getCompilerConfiguration()
ModuleNode
parse(File file)
ModuleNode
parse(String name, String text)
ModuleNode
parse(SourceUnit sourceUnit)
-
-
-
Method Detail
-
parse
public ModuleNode parse(File file)
-
parse
public ModuleNode parse(String name, String text)
-
parse
public ModuleNode parse(SourceUnit sourceUnit)
-
getCompilerConfiguration
protected abstract CompilerConfiguration getCompilerConfiguration()
-
-