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 Parser
newInstance
(Query.Type type, ParserEnvironment environment) Creates aParser
appropriate for the givenQuery.Type
, providing the Parser with access to theParserEnvironment
given.
-
Method Details
-
newInstance
Creates aParser
appropriate for the givenQuery.Type
, providing the Parser with access to theParserEnvironment
given.- Parameters:
type
- the query type for which to create a Parserenvironment
- the environment settings to attach to the Parser- Returns:
- the created Parser
-