Interface EscapeQuerySyntax
-
- All Known Implementing Classes:
EscapeQuerySyntaxImpl
public interface EscapeQuerySyntaxA parser needs to implementEscapeQuerySyntaxto allow the QueryNode to escape the queries, when the toQueryString method is called.
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static classEscapeQuerySyntax.TypeType of escaping: String for escaping syntax, NORMAL for escaping reserved words (like AND) in terms
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description java.lang.CharSequenceescape(java.lang.CharSequence text, java.util.Locale locale, EscapeQuerySyntax.Type type)
-
-
-
Method Detail
-
escape
java.lang.CharSequence escape(java.lang.CharSequence text, java.util.Locale locale, EscapeQuerySyntax.Type type)- Parameters:
text- - text to be escapedlocale- - locale for the current querytype- - select the type of escape operation to use- Returns:
- escaped text
-
-