public enum SyntaxVersion extends Enum<SyntaxVersion>
Important: Do not use outside of Soy code (treat as superpackage-private).
| Enum Constant and Description |
|---|
V1_0
V1.0 allows these legacy deprecated items:
No 'namespace' declaration in Soy file.
|
V2_0
V2.0 is the syntax that has historically been enforced by the Soy compiler.
|
V2_3
Syntax that causes V2.3+ to be inferred:
Usage of template header @param decls (as opposed to SoyDoc @param decls).
|
V2_4
Syntax that causes V2.4+ to be inferred:
Usage of template header @inject decls (as opposed to $ij variables).
|
V9_9
For internal use only.
|
| 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>