public enum ParserVersion extends java.lang.Enum<ParserVersion>
Enum Constant and Description |
---|
V_2
Before Groovy 2.6.0(including 2.6.0), the default version of parser is v2
|
V_4
After Groovy 3.0.0(including 3.0.0), the default version of parser is v4(i.e.
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getName() |
static ParserVersion |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static ParserVersion[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ParserVersion V_2
public static final ParserVersion V_4
public static ParserVersion[] values()
for (ParserVersion c : ParserVersion.values()) System.out.println(c);
public static ParserVersion 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 nullpublic java.lang.String getName()