Class UnescapedCharSequence
java.lang.Object
org.apache.lucene.queryparser.flexible.core.util.UnescapedCharSequence
- All Implemented Interfaces:
CharSequence
CharsSequence with escaped chars information.
-
Field Summary
Fields -
Constructor Summary
ConstructorsModifierConstructorDescriptionUnescapedCharSequence(char[] chars, boolean[] wasEscaped, int offset, int length) Create a escaped CharSequenceCreate a non-escaped CharSequenceprivateCreate a copy of an existent UnescapedCharSequence -
Method Summary
Modifier and TypeMethodDescriptioncharcharAt(int index) intlength()subSequence(int start, int end) static CharSequencetoLowerCase(CharSequence text, Locale locale) toString()Return a escaped StringtoStringEscaped(char[] enabledChars) Return a escaped StringbooleanwasEscaped(int index) static final booleanwasEscaped(CharSequence text, int index) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface java.lang.CharSequence
chars, codePoints, isEmpty
-
Field Details
-
chars
private char[] chars -
wasEscaped
private boolean[] wasEscaped
-
-
Constructor Details
-
UnescapedCharSequence
public UnescapedCharSequence(char[] chars, boolean[] wasEscaped, int offset, int length) Create a escaped CharSequence -
UnescapedCharSequence
Create a non-escaped CharSequence -
UnescapedCharSequence
Create a copy of an existent UnescapedCharSequence
-
-
Method Details
-
charAt
public char charAt(int index) - Specified by:
charAtin interfaceCharSequence
-
length
public int length()- Specified by:
lengthin interfaceCharSequence
-
subSequence
- Specified by:
subSequencein interfaceCharSequence
-
toString
- Specified by:
toStringin interfaceCharSequence- Overrides:
toStringin classObject
-
toStringEscaped
Return a escaped String- Returns:
- a escaped String
-
toStringEscaped
Return a escaped String- Parameters:
enabledChars- - array of chars to be escaped- Returns:
- a escaped String
-
wasEscaped
public boolean wasEscaped(int index) -
wasEscaped
-
toLowerCase
-