Package org.codehaus.groovy.control
Class ParserPluginFactory
- java.lang.Object
-
- org.codehaus.groovy.control.ParserPluginFactory
-
- Direct Known Subclasses:
Antlr4PluginFactory
,AntlrParserPluginFactory
public abstract class ParserPluginFactory extends Object
A factory of parser plugin instances
-
-
Constructor Summary
Constructors Constructor Description ParserPluginFactory()
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Concrete Methods Deprecated Methods Modifier and Type Method Description static ParserPluginFactory
antlr2()
Deprecated.static ParserPluginFactory
antlr4(CompilerConfiguration compilerConfiguration)
creates the ANTLR 4 parserabstract ParserPlugin
createParserPlugin()
static ParserPluginFactory
newInstance()
Deprecated.static ParserPluginFactory
newInstance(boolean useNewParser)
Deprecated.
-
-
-
Method Detail
-
antlr4
public static ParserPluginFactory antlr4(CompilerConfiguration compilerConfiguration)
creates the ANTLR 4 parser- Returns:
- the factory for the parser
-
antlr2
@Deprecated public static ParserPluginFactory antlr2()
Deprecated.creates the ANTLR 2.7 parser- Returns:
- the factory for the parser
-
newInstance
@Deprecated public static ParserPluginFactory newInstance(boolean useNewParser)
Deprecated.creates the ANTLR 2.7 parser. This method was used to switch between the pre JSR parser and the new ANTLR 2.7 based parser, but even before Groovy 1.0 this method was changed to always return the ANTLR 2.7 parser.- Parameters:
useNewParser
- - ignored- Returns:
- the ANTLR 2.7 based parser
-
newInstance
@Deprecated public static ParserPluginFactory newInstance()
Deprecated.creates the ANTLR 2.7 parser. This method was used to switch between the pre JSR parser and the new ANTLR 2.7 based parser, but even before Groovy 1.0 this method was changed to always return the ANTLR 2.7 parser.- Returns:
- the new parser factory.
-
createParserPlugin
public abstract ParserPlugin createParserPlugin()
-
-