@ParametersAreNonnullByDefault
public abstract class AHandler
extends java.lang.Object
IGenerator implementation.| Modifier and Type | Field and Description |
|---|---|
protected EventHandler |
annotation |
protected java.lang.Object |
instance |
protected java.lang.Class<?> |
owner |
| Constructor and Description |
|---|
AHandler(java.lang.Class<?> owner,
java.lang.Object instance,
EventHandler annotation) |
| Modifier and Type | Method and Description |
|---|---|
abstract void |
call(java.lang.Object event)
Call the event handler with the given event instance.
|
EventHandler |
getAnnotation() |
java.lang.Object |
getInstance() |
java.lang.Class<?> |
getOwner() |
boolean |
isStatic() |
boolean |
shouldHandleCancelled() |
abstract java.lang.String |
toString() |
@Nonnull protected final java.lang.Class<?> owner
@Nullable protected final java.lang.Object instance
@Nonnull protected final EventHandler annotation
public AHandler(java.lang.Class<?> owner,
@Nullable
java.lang.Object instance,
EventHandler annotation)
owner - The owner of the handler methodinstance - The instance of the handler ownerannotation - The EventHandler annotation of the handler method@Nonnull public java.lang.Class<?> getOwner()
@Nullable public java.lang.Object getInstance()
@Nonnull public EventHandler getAnnotation()
EventHandler annotation of the handler methodpublic boolean isStatic()
public boolean shouldHandleCancelled()
public abstract void call(@Nonnull
java.lang.Object event)
event - The event instancepublic abstract java.lang.String toString()
toString in class java.lang.Object