public enum BuiltinFunction extends Enum<BuiltinFunction> implements SoyFunction
Important: Do not use outside of Soy code (treat as superpackage-private).
| Enum Constant and Description |
|---|
CHECK_NOT_NULL |
INDEX |
IS_FIRST |
IS_LAST |
QUOTE_KEYS_IF_JS |
| Modifier and Type | Method and Description |
|---|---|
static BuiltinFunction |
forFunctionName(String functionName)
Returns the NonpluginFunction for the given function name, or null if not found.
|
String |
getName()
Gets the name of the Soy function.
|
Set<Integer> |
getValidArgsSizes()
Gets the set of valid args list sizes.
|
static BuiltinFunction |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static BuiltinFunction[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final BuiltinFunction IS_FIRST
public static final BuiltinFunction IS_LAST
public static final BuiltinFunction INDEX
public static final BuiltinFunction QUOTE_KEYS_IF_JS
public static final BuiltinFunction CHECK_NOT_NULL
public static BuiltinFunction[] values()
for (BuiltinFunction c : BuiltinFunction.values()) System.out.println(c);
public static BuiltinFunction 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 BuiltinFunction forFunctionName(String functionName)
functionName - The function name to retrieve.public String getName()
SoyFunctiongetName in interface SoyFunctionpublic Set<Integer> getValidArgsSizes()
SoyFunctiongetValidArgsSizes in interface SoyFunction