public interface QueryParser extends FlyweightPrototype<QueryParser>
Query
objects.
Besides the obvious parse(String)/parse(MutableString) methods, a query parser must provide an
escape(String)/escape(MutableString) method that can be used to turn arbitrary strings into text tokens.
| Modifier and Type | Method and Description |
|---|---|
MutableString |
escape(MutableString token)
Escapes the provided mutable string, making it into a text token.
|
String |
escape(String token)
Escapes the provided string, making it into a text token.
|
Query |
parse(MutableString query)
Turns the given query mutable string into a composite
Query object. |
Query |
parse(String query)
Turns the given query string into a composite
Query object. |
copyQuery parse(String query) throws QueryParserException
Query object.query - a string representing a query.QueryParserExceptionQuery parse(MutableString query) throws QueryParserException
Query object.query - a mutable string representing a query.QueryParserExceptionString escape(String token)
token - a wannabe text token (maybe containing special characters, but no character below code 32).token that will be interpreted
as a text token by this parser.MutableString escape(MutableString token)
token - a wannabe text token (maybe containing special characters, but no character below code 32).token, escaped so that it will be interpreted
as a text token by this parser.