@ApiStatus.Internal public final class ClassParameterTypeFactory<A extends CommandActor,T> extends java.lang.Object implements ParameterType.Factory<A>
| Constructor and Description |
|---|
ClassParameterTypeFactory(java.lang.Class<?> type,
ParameterType<A,T> parameterType,
boolean allowSubclasses) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
allowSubclasses() |
<L> ParameterType<A,L> |
create(@NotNull java.lang.reflect.Type parameterType,
@NotNull AnnotationList annotations,
@NotNull Lamp<A> lamp)
Dynamically creates a
ParameterType |
boolean |
equals(java.lang.Object obj) |
int |
hashCode() |
ParameterType<A,T> |
parameterType() |
java.lang.String |
toString() |
java.lang.Class<?> |
type() |
clone, finalize, getClass, notify, notifyAll, wait, wait, waitforType, forTypeAndSubclassespublic ClassParameterTypeFactory(java.lang.Class<?> type,
ParameterType<A,T> parameterType,
boolean allowSubclasses)
public <L> ParameterType<A,L> create(@NotNull @NotNull java.lang.reflect.Type parameterType, @NotNull @NotNull AnnotationList annotations, @NotNull @NotNull Lamp<A> lamp)
ParameterType.FactoryParameterTypecreate in interface ParameterType.Factory<A extends CommandActor>L - 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.public java.lang.Class<?> type()
public ParameterType<A,T> parameterType()
public boolean allowSubclasses()
public boolean equals(java.lang.Object obj)
equals in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Objectpublic java.lang.String toString()
toString in class java.lang.Object