Package com.yahoo.search.query.parser
Class ParserFactory
java.lang.Object
com.yahoo.search.query.parser.ParserFactory
Implements a factory for
Parser.- Author:
- Simon Thoresen Hult
-
Method Summary
Modifier and TypeMethodDescriptionstatic ParsernewInstance(QueryType type, ParserEnvironment environment) Creates aParserappropriate for the givenQuery.Type, providing the Parser with access to theParserEnvironmentgiven.static ParsernewInstance(Query.Type type, ParserEnvironment environment)
-
Method Details
-
newInstance
-
newInstance
Creates aParserappropriate for the givenQuery.Type, providing the Parser with access to theParserEnvironmentgiven.- Parameters:
type- the query type for which to create a Parserenvironment- the environment settings to attach to the Parser- Returns:
- the created Parser
-