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 java.lang.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(java.io.File file)
ModuleNode
parse(java.lang.String name, java.lang.String text)
ModuleNode
parse(SourceUnit sourceUnit)
-
-
-
Method Detail
-
parse
public ModuleNode parse(java.io.File file)
-
parse
public ModuleNode parse(java.lang.String name, java.lang.String text)
-
parse
public ModuleNode parse(SourceUnit sourceUnit)
-
getCompilerConfiguration
protected abstract CompilerConfiguration getCompilerConfiguration()
-
-