groovy.json
public enum Matching extends Enum<Matching>
Matching enum provides three values used by the lexer,
to say if the content currently read on the reader is matching a certain token,
whether it's a possible match (ie. more input needed for fully matching the pattern),
or if it doesn't match at all.| Enum Constant and Description |
|---|
NO
The current read input cannot match the pattern
|
POSSIBLE
The current read input can match the pattern if more input is provided
|
YES
The current read input matches the pattern
|
| Modifier and Type | Method and Description |
|---|---|
static Matching |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static Matching[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Matching NO
public static final Matching POSSIBLE
public static final Matching YES
public static Matching[] values()
for (Matching c : Matching.values()) System.out.println(c);
public static Matching valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant
with the specified nameNullPointerException - if the argument is null