Package com.yahoo.search.query.parser
Class ParserFactory
- java.lang.Object
-
- com.yahoo.search.query.parser.ParserFactory
-
public final class ParserFactory extends java.lang.Object
Implements a factory forParser
.- Author:
- Simon Thoresen Hult
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static Parser
newInstance(Query.Type type, ParserEnvironment environment)
Creates aParser
appropriate for the givenQuery.Type
, providing the Parser with access to theParserEnvironment
given.
-
-
-
Method Detail
-
newInstance
public static Parser newInstance(Query.Type type, ParserEnvironment environment)
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
-
-