public enum DefaultScriptFunction extends java.lang.Enum<DefaultScriptFunction> implements ScriptFunction
ScriptTypes which have a single functionScriptFunction.Mapping| Enum Constant and Description |
|---|
DEFAULT
Main script
|
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
PREFIX |
| Modifier and Type | Method and Description |
|---|---|
MessageKey |
messageKey()
Returns a message key to use for this function
|
java.lang.String |
prefix()
Returns the prefix used by this class
|
boolean |
required()
Returns whether the function is required
|
static DefaultScriptFunction |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static DefaultScriptFunction[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOfnamepublic static final DefaultScriptFunction DEFAULT
public static final java.lang.String PREFIX
public static DefaultScriptFunction[] values()
for (DefaultScriptFunction c : DefaultScriptFunction.values()) System.out.println(c);
public static DefaultScriptFunction valueOf(java.lang.String name)
name - the name of the enum constant to be returned.java.lang.IllegalArgumentException - if this enum type has no constant with the specified namejava.lang.NullPointerException - if the argument is nullpublic MessageKey messageKey()
ScriptFunctionmessageKey in interface ScriptFunctionpublic java.lang.String prefix()
PrefixedEnumprefix in interface PrefixedEnumpublic boolean required()
ScriptFunctionrequired in interface ScriptFunction