public abstract class CaretTransformer
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static class |
CaretTransformer.CaretPos
The Object that consists a range of a string
whereas the both properties "left" "right" are inclusive
|
Constructor and Description |
---|
CaretTransformer() |
Modifier and Type | Method and Description |
---|---|
static boolean |
isValidCaretPos(java.lang.CharSequence text,
CaretTransformer.CaretPos caretPos) |
protected abstract boolean |
process(java.lang.CharSequence text,
CaretTransformer.CaretPos before,
CaretTransformer.CaretPos after) |
boolean |
transform(KawapadParenthesisStack stack,
java.lang.CharSequence text,
javax.swing.text.Caret caret) |
void |
transform(KawapadParenthesisStack stack,
javax.swing.text.Document text,
javax.swing.text.Caret caret) |
public final void transform(KawapadParenthesisStack stack, javax.swing.text.Document text, javax.swing.text.Caret caret)
public final boolean transform(KawapadParenthesisStack stack, java.lang.CharSequence text, javax.swing.text.Caret caret)
public static boolean isValidCaretPos(java.lang.CharSequence text, CaretTransformer.CaretPos caretPos)
protected abstract boolean process(java.lang.CharSequence text, CaretTransformer.CaretPos before, CaretTransformer.CaretPos after)