Class EscapeQuerySyntaxImpl
- java.lang.Object
 - 
- org.apache.lucene.queryparser.flexible.standard.parser.EscapeQuerySyntaxImpl
 
 
- 
- All Implemented Interfaces:
 EscapeQuerySyntax
public class EscapeQuerySyntaxImpl extends java.lang.Object implements EscapeQuerySyntax
Implementation ofEscapeQuerySyntaxfor the standard lucene syntax. 
- 
- 
Nested Class Summary
- 
Nested classes/interfaces inherited from interface org.apache.lucene.queryparser.flexible.core.parser.EscapeQuerySyntax
EscapeQuerySyntax.Type 
 - 
 
- 
Constructor Summary
Constructors Constructor Description EscapeQuerySyntaxImpl() 
- 
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static UnescapedCharSequencediscardEscapeChar(java.lang.CharSequence input)Returns a String where the escape char has been removed, or kept only once if there was a double escape.java.lang.CharSequenceescape(java.lang.CharSequence text, java.util.Locale locale, EscapeQuerySyntax.Type type) 
 - 
 
- 
- 
Method Detail
- 
escape
public java.lang.CharSequence escape(java.lang.CharSequence text, java.util.Locale locale, EscapeQuerySyntax.Type type)- Specified by:
 escapein interfaceEscapeQuerySyntax- Parameters:
 text- - text to be escapedlocale- - locale for the current querytype- - select the type of escape operation to use- Returns:
 - escaped text
 
 
- 
discardEscapeChar
public static UnescapedCharSequence discardEscapeChar(java.lang.CharSequence input) throws ParseException
Returns a String where the escape char has been removed, or kept only once if there was a double escape. Supports escaped unicode characters, e. g. translatesAtoA.- Throws:
 ParseException
 
 - 
 
 -