Package eu.clarin.sru.server.fcs.parser
Class QueryParser
- java.lang.Object
-
- eu.clarin.sru.server.fcs.parser.QueryParser
-
public class QueryParser extends Object
A FCS-QL query parser that produces FCS-QL expression trees.
-
-
Constructor Summary
Constructors Constructor Description QueryParser()
Constructor.QueryParser(String defaultIdentifier)
Constructor.QueryParser(String defaultIdentifier, Normalizer.Form unicodeNormaliztionForm)
Constructor.
-
-
-
Constructor Detail
-
QueryParser
public QueryParser()
Constructor.
-
QueryParser
public QueryParser(String defaultIdentifier)
Constructor.- Parameters:
defaultIdentifier
- the default identifier to be used for simple expressions
-
QueryParser
public QueryParser(String defaultIdentifier, Normalizer.Form unicodeNormaliztionForm)
Constructor.- Parameters:
defaultIdentifier
- the default identifier to be used for simple expressionsunicodeNormaliztionForm
- the Unicode normalization form to be used ornull
to not perform normalization
-
-
Method Detail
-
parse
public QueryNode parse(String query) throws QueryParserException
Parse query.- Parameters:
query
- the FCS-QL query- Returns:
- a FCS-QL expression tree
- Throws:
QueryParserException
- if an error occurred
-
-