public static enum ScriptEnvironment.FunctionStatementBehavior extends Enum<ScriptEnvironment.FunctionStatementBehavior>
Enum.EnumDesc<E extends Enum<E>>
Enum Constant and Description |
---|
ACCEPT
Accept the function declaration silently and treat it as if it were a function expression
assigned to a local variable.
|
ERROR
Raise a
SyntaxError . |
WARNING
Log a parser warning, but accept the function declaration and treat it as if it were a
function expression assigned to a local variable.
|
Modifier and Type | Method and Description |
---|---|
static ScriptEnvironment.FunctionStatementBehavior |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static ScriptEnvironment.FunctionStatementBehavior[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ScriptEnvironment.FunctionStatementBehavior ACCEPT
public static final ScriptEnvironment.FunctionStatementBehavior WARNING
public static final ScriptEnvironment.FunctionStatementBehavior ERROR
SyntaxError
.public static ScriptEnvironment.FunctionStatementBehavior[] values()
public static ScriptEnvironment.FunctionStatementBehavior 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