public enum ScriptEventFireTime extends java.lang.Enum<ScriptEventFireTime> implements EventFireTime<ScriptEventData>
Enum Constant and Description |
---|
AfterScript
After a script is executed
|
BeforeScript
Before a script is executed
|
OnScriptEnd
Run when the script finishes executing.
|
OnScriptError
Executes when an error occurs in a script
|
OnScriptStart
Run when the script begins to execute.
|
Modifier and Type | Method and Description |
---|---|
java.lang.Object |
getDefaultReturnValue(ScriptEventData data)
Gets the default value to return for this time from the data
|
static ScriptEventFireTime |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static ScriptEventFireTime[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ScriptEventFireTime BeforeScript
public static final ScriptEventFireTime OnScriptStart
public static final ScriptEventFireTime OnScriptEnd
public static final ScriptEventFireTime OnScriptError
public static final ScriptEventFireTime AfterScript
public static ScriptEventFireTime[] values()
for (ScriptEventFireTime c : ScriptEventFireTime.values()) System.out.println(c);
public static ScriptEventFireTime 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 null@Nullable public java.lang.Object getDefaultReturnValue(ScriptEventData data)
getDefaultReturnValue
in interface EventFireTime<ScriptEventData>
data
- The default value to return