public class KawapadSelection
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static interface |
KawapadSelection.CharSelector |
Modifier and Type | Field and Description |
---|---|
static int |
LCP2_STRATEGY_CORRESPONDING_PARENTHESIS_JUMP |
static int |
LCP2_STRATEGY_DYNAMIC |
static int |
LCP2_STRATEGY_SIMPLE_PARENTHESIS_JUMP |
Constructor and Description |
---|
KawapadSelection() |
Modifier and Type | Method and Description |
---|---|
static javax.swing.text.Segment |
getText(javax.swing.text.Document document) |
static int |
lookup(java.lang.CharSequence text,
KawapadSelection.CharSelector selector,
int position,
int step)
This method looks up the specified character from the passed CharSequence
object.
|
static int |
lookupCorrespondingParenthesis(java.lang.CharSequence text,
int currDot,
int direction) |
static int |
lookupCorrespondingParenthesis2(java.lang.CharSequence text,
int currDot,
int direction,
int constantStrategy) |
static int |
lookupParenthesis(java.lang.CharSequence text,
int position,
int step) |
static int |
lookupParenthesisOld(java.lang.CharSequence text,
int position,
int step) |
static int |
recursiveIndexOf(java.lang.CharSequence text,
int fromIndex,
int direction,
char descendChar,
char ascendChar) |
public static final int LCP2_STRATEGY_DYNAMIC
public static final int LCP2_STRATEGY_SIMPLE_PARENTHESIS_JUMP
public static final int LCP2_STRATEGY_CORRESPONDING_PARENTHESIS_JUMP
public static javax.swing.text.Segment getText(javax.swing.text.Document document) throws java.lang.InternalError
java.lang.InternalError
public static final int lookup(java.lang.CharSequence text, KawapadSelection.CharSelector selector, int position, int step)
IllegalArgumentException
when step is zero.public static final int lookupParenthesis(java.lang.CharSequence text, int position, int step)
public static final int lookupParenthesisOld(java.lang.CharSequence text, int position, int step)
public static int lookupCorrespondingParenthesis(java.lang.CharSequence text, int currDot, int direction)
public static int lookupCorrespondingParenthesis2(java.lang.CharSequence text, int currDot, int direction, int constantStrategy)
public static int recursiveIndexOf(java.lang.CharSequence text, int fromIndex, int direction, char descendChar, char ascendChar)