@ApiStatus.Internal public final class ClassResponseHandlerFactory<A extends CommandActor,T> extends java.lang.Object implements ResponseHandler.Factory<A>
| Constructor and Description |
|---|
ClassResponseHandlerFactory(java.lang.Class<?> type,
ResponseHandler<A,T> responseHandler,
boolean allowSubclasses) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
allowSubclasses() |
<L> ResponseHandler<A,L> |
create(@NotNull java.lang.reflect.Type parameterType,
@NotNull AnnotationList annotations,
@NotNull Lamp<A> lamp)
Creates a new
CommandPermission for the given type and list of annotations. |
boolean |
equals(java.lang.Object obj) |
int |
hashCode() |
ResponseHandler<A,T> |
responseHandler() |
java.lang.String |
toString() |
java.lang.Class<?> |
type() |
clone, finalize, getClass, notify, notifyAll, wait, wait, waitforType, forTypeAndSubclassespublic ClassResponseHandlerFactory(java.lang.Class<?> type,
ResponseHandler<A,T> responseHandler,
boolean allowSubclasses)
public <L> ResponseHandler<A,L> create(@NotNull @NotNull java.lang.reflect.Type parameterType, @NotNull @NotNull AnnotationList annotations, @NotNull @NotNull Lamp<A> lamp)
ResponseHandler.FactoryCommandPermission for the given type and list of annotations. These
annotations will usually represent the ones on the function
If this factory is not responsible for the given input, it may return
null.
create in interface ResponseHandler.Factory<A extends CommandActor>annotations - The annotation listlamp - The Lamp instancepublic java.lang.Class<?> type()
public ResponseHandler<A,T> responseHandler()
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