public enum NonpluginFunction extends Enum<NonpluginFunction>
Important: Do not use outside of Soy code (treat as superpackage-private).
Enum Constant and Description |
---|
INDEX |
IS_FIRST |
IS_LAST |
QUOTE_KEYS_IF_JS |
Modifier and Type | Method and Description |
---|---|
static NonpluginFunction |
forFunctionName(String functionName)
Returns the NonpluginFunction for the given function name, or null if not found.
|
String |
getFunctionName()
Returns the function name.
|
int |
getNumArgs()
Returns the number of arguments.
|
static NonpluginFunction |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static NonpluginFunction[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final NonpluginFunction IS_FIRST
public static final NonpluginFunction IS_LAST
public static final NonpluginFunction INDEX
public static final NonpluginFunction QUOTE_KEYS_IF_JS
public static NonpluginFunction[] values()
for (NonpluginFunction c : NonpluginFunction.values()) System.out.println(c);
public static NonpluginFunction 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 NonpluginFunction forFunctionName(String functionName)
functionName
- The function name to retrieve.public String getFunctionName()
public int getNumArgs()