public enum BindingBehavior extends java.lang.Enum<BindingBehavior>
Enum Constant and Description |
---|
CONSUMES
Always consumes from a
ArgumentStack . |
INDETERMINATE
Sometimes consumes from a
ArgumentStack . |
PROVIDES
Never consumes from a
ArgumentStack . |
Modifier and Type | Method and Description |
---|---|
static BindingBehavior |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static BindingBehavior[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final BindingBehavior CONSUMES
ArgumentStack
.public static final BindingBehavior INDETERMINATE
ArgumentStack
.
Bindings that exhibit this behavior must be defined as a Switch
by commands utilizing the given binding.
public static final BindingBehavior PROVIDES
ArgumentStack
.
Bindings that exhibit this behavior generate objects from other sources,
such as from a CommandLocals
. These are "magic" bindings that inject
variables.
public static BindingBehavior[] values()
for (BindingBehavior c : BindingBehavior.values()) System.out.println(c);
public static BindingBehavior 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