public enum SyntaxVersion extends Enum<SyntaxVersion>
Important: Do not use outside of Soy code (treat as superpackage-private).
| Modifier and Type | Field and Description |
|---|---|
String |
name
The string name.
|
int |
num
The number for ordering.
|
| Modifier and Type | Method and Description |
|---|---|
static SyntaxVersion |
forName(String name) |
String |
toString() |
static SyntaxVersion |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static SyntaxVersion[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final SyntaxVersion V1_0
public static final SyntaxVersion V2_0
public static final SyntaxVersion V2_3
public static final SyntaxVersion V2_4
public static final SyntaxVersion V9_9
public final String name
public final int num
public static SyntaxVersion[] values()
for (SyntaxVersion c : SyntaxVersion.values()) System.out.println(c);
public static SyntaxVersion 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 nullpublic static SyntaxVersion forName(String name)
public String toString()
toString in class Enum<SyntaxVersion>