|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface QueryParser
A parser transforming query strings in composite 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.
| Method Summary | |
|---|---|
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. |
| Methods inherited from interface it.unimi.dsi.lang.FlyweightPrototype |
|---|
copy |
| Method Detail |
|---|
Query parse(String query)
throws QueryParserException
Query object.
query - a string representing a query.
QueryParserException
Query 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.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||