Package com.intellij.openapi.util.text
Class StringUtil.BombedCharSequence
java.lang.Object
com.intellij.openapi.util.text.StringUtil.BombedCharSequence
- All Implemented Interfaces:
CharSequence
- Enclosing class:
StringUtil
Expirable CharSequence. Very useful to control external library execution time,
i.e. when java.util.regex.Pattern match goes out of control.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncharcharAt(int i) protected voidcheck()protected abstract voidintlength()subSequence(int i, int i1) toString()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
-
Constructor Details
-
BombedCharSequence
-
-
Method Details
-
length
public int length()- Specified by:
lengthin interfaceCharSequence
-
charAt
public char charAt(int i) - Specified by:
charAtin interfaceCharSequence
-
check
protected void check() -
toString
- Specified by:
toStringin interfaceCharSequence- Overrides:
toStringin classObject
-
checkCanceled
protected abstract void checkCanceled() -
subSequence
- Specified by:
subSequencein interfaceCharSequence
-