@ApiStatus.Internal public enum EnumParameterTypeFactory extends java.lang.Enum<EnumParameterTypeFactory> implements ParameterType.Factory<CommandActor>
| Enum Constant and Description |
|---|
INSTANCE |
| Modifier and Type | Method and Description |
|---|---|
<T> ParameterType<CommandActor,T> |
create(@NotNull java.lang.reflect.Type parameterType,
@NotNull AnnotationList annotations,
@NotNull Lamp<CommandActor> lamp)
Dynamically creates a
ParameterType |
static EnumParameterTypeFactory |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static EnumParameterTypeFactory[] |
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, valueOfforType, forTypeAndSubclassespublic static final EnumParameterTypeFactory INSTANCE
public static EnumParameterTypeFactory[] values()
for (EnumParameterTypeFactory c : EnumParameterTypeFactory.values()) System.out.println(c);
public static EnumParameterTypeFactory 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 <T> ParameterType<CommandActor,T> create(@NotNull @NotNull java.lang.reflect.Type parameterType, @NotNull @NotNull AnnotationList annotations, @NotNull @NotNull Lamp<CommandActor> lamp)
ParameterType.FactoryParameterTypecreate in interface ParameterType.Factory<CommandActor>T - The parameter typeparameterType - The command parameter to create forannotations - The parameter annotationslamp - The Lamp instance (for referencing other parameter types)ParameterType, or null if this factory
cannot deal with it.