Interface EscapeQuerySyntax
- All Known Implementing Classes:
EscapeQuerySyntaxImpl
public interface EscapeQuerySyntax
A parser needs to implement
EscapeQuerySyntax
to allow the QueryNode to escape the
queries, when the toQueryString method is called.-
Nested Class Summary
Modifier and TypeInterfaceDescriptionstatic enum
Type of escaping: String for escaping syntax, NORMAL for escaping reserved words (like AND) in terms -
Method Summary
Modifier and TypeMethodDescriptionescape
(CharSequence text, Locale locale, EscapeQuerySyntax.Type type)
-
Method Details
-
escape
- Parameters:
text
- - text to be escapedlocale
- - locale for the current querytype
- - select the type of escape operation to use- Returns:
- escaped text
-