enum JSONSymbol extends java.lang.Enum<JSONSymbol>
Enum Constant and Description |
---|
A |
A_ |
A1 |
A1_ |
A2 |
A2_ |
COLON |
COMMA |
CURLYCLOSE |
CURLYOPEN |
EOS |
KEYWORD |
NUMBER |
O |
O_ |
O1 |
O1_ |
O3 |
O3_ |
OV |
OV_ |
SQUARECLOSE |
SQUAREOPEN |
STRING |
V |
V_ |
VA |
VA_ |
X |
X_ |
Modifier and Type | Field and Description |
---|---|
private static JSONSymbol |
current |
(package private) static boolean |
DEBUG |
(package private) boolean |
isMarker |
(package private) boolean |
isTerminal |
(package private) JSONSymbol |
markerSymbol |
private static JSONScanner |
scanner |
private static java.util.Stack<JSONSymbol> |
stack |
private static JSONSymbol |
terminal |
(package private) java.util.HashMap<JSONSymbol,JSONSymbol[]> |
transitions |
private static java.lang.String |
value |
Modifier and Type | Method and Description |
---|---|
(package private) static java.lang.String |
getValue() |
(package private) static void |
init(JSONScanner js) |
private void |
marker(JSONSymbol s) |
(package private) static JSONSymbol |
next() |
private void |
transition(JSONSymbol s,
JSONSymbol[] sequence) |
static JSONSymbol |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static JSONSymbol[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final JSONSymbol X
public static final JSONSymbol O
public static final JSONSymbol O1
public static final JSONSymbol O3
public static final JSONSymbol OV
public static final JSONSymbol A
public static final JSONSymbol A1
public static final JSONSymbol A2
public static final JSONSymbol V
public static final JSONSymbol VA
public static final JSONSymbol CURLYOPEN
public static final JSONSymbol CURLYCLOSE
public static final JSONSymbol COLON
public static final JSONSymbol COMMA
public static final JSONSymbol SQUAREOPEN
public static final JSONSymbol SQUARECLOSE
public static final JSONSymbol KEYWORD
public static final JSONSymbol STRING
public static final JSONSymbol NUMBER
public static final JSONSymbol EOS
public static final JSONSymbol X_
public static final JSONSymbol O_
public static final JSONSymbol O1_
public static final JSONSymbol O3_
public static final JSONSymbol OV_
public static final JSONSymbol A_
public static final JSONSymbol A1_
public static final JSONSymbol A2_
public static final JSONSymbol V_
public static final JSONSymbol VA_
static final boolean DEBUG
boolean isTerminal
boolean isMarker
java.util.HashMap<JSONSymbol,JSONSymbol[]> transitions
JSONSymbol markerSymbol
private static java.util.Stack<JSONSymbol> stack
private static JSONSymbol terminal
private static JSONSymbol current
private static JSONScanner scanner
private static java.lang.String value
public static JSONSymbol[] values()
for (JSONSymbol c : JSONSymbol.values()) System.out.println(c);
public static JSONSymbol valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is nullprivate void transition(JSONSymbol s, JSONSymbol[] sequence)
private void marker(JSONSymbol s)
static void init(JSONScanner js) throws JSONException, java.io.IOException
JSONException
java.io.IOException
static JSONSymbol next() throws JSONException, java.io.IOException
JSONException
java.io.IOException
static java.lang.String getValue()