public enum Syntax extends Enum<Syntax>
| Enum Constant and Description |
|---|
PYTHON_DSL |
SKYLARK |
| Modifier and Type | Method and Description |
|---|---|
static Optional<Syntax> |
from(String syntaxName)
Converts a syntax name to a corresponding enum value.
|
static Syntax |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static Syntax[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Syntax PYTHON_DSL
public static final Syntax SKYLARK
public static Syntax[] values()
for (Syntax c : Syntax.values()) System.out.println(c);
public static Syntax 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