public class CCL
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
private static class |
CCL.ByteCCL |
private static class |
CCL.CharacterCCL |
Modifier and Type | Field and Description |
---|---|
boolean[] |
ALL |
boolean[] |
ALNUM |
boolean[] |
ALPHA |
boolean[] |
ANY |
boolean[] |
ASCII |
boolean[] |
BLANK |
boolean[] |
CNTRL |
boolean[] |
DIGIT |
boolean[] |
EMPTY |
int |
EOF |
boolean[] |
GRAPH |
boolean[] |
LOWER |
int |
MAX_SYMBOL |
boolean[] |
PRINT |
boolean[] |
PUNCT |
boolean[] |
SPACE |
boolean[] |
UPPER |
boolean[] |
XDIGIT |
Modifier | Constructor and Description |
---|---|
private |
CCL(int maxSymbol) |
Modifier and Type | Method and Description |
---|---|
static char |
esc(java.lang.String input,
int[] currentPos)
Compute the escape sequence character.
|
static CCL |
getByteCCL() |
static CCL |
getCharacterCCL() |
static boolean[] |
merge(boolean[] c1,
boolean[] c2) |
static boolean[] |
negate(boolean[] c) |
boolean[] |
parseCCL(java.lang.String input) |
private java.lang.String |
printCCL(boolean[] ccl) |
static boolean[] |
subtract(boolean[] c1,
boolean[] c2) |
java.lang.String |
toString(boolean[] ccl)
Convert a CCL map to a string representation for debugging purpose.
|
(package private) static java.lang.String |
toString(char c) |
public final int MAX_SYMBOL
public final int EOF
public final boolean[] EMPTY
public final boolean[] ANY
public final boolean[] ALL
public final boolean[] LOWER
public final boolean[] UPPER
public final boolean[] ASCII
public final boolean[] ALPHA
public final boolean[] DIGIT
public final boolean[] ALNUM
public final boolean[] PUNCT
public final boolean[] GRAPH
public final boolean[] PRINT
public final boolean[] BLANK
public final boolean[] CNTRL
public final boolean[] XDIGIT
public final boolean[] SPACE
public static CCL getByteCCL()
public static CCL getCharacterCCL()
public static char esc(java.lang.String input, int[] currentPos) throws EscapeSequenceException
input
- input char arraycurrentPos
- an array size 1 of the current position to be scanned. New
position after scan is stored back into this array.EscapeSequenceException
- when the input has invalid format or is emptypublic boolean[] parseCCL(java.lang.String input) throws CCLException
CCLException
public static boolean[] merge(boolean[] c1, boolean[] c2)
public static boolean[] subtract(boolean[] c1, boolean[] c2)
public static boolean[] negate(boolean[] c)
static java.lang.String toString(char c)
private java.lang.String printCCL(boolean[] ccl)
public java.lang.String toString(boolean[] ccl)