public abstract class AHandler
extends java.lang.Object
IGenerator implementation| 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() |
public AHandler(@Nonnull
java.lang.Class<?> owner,
@Nullable
java.lang.Object instance,
@Nonnull
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 abstract void call(java.lang.Object event)
event - The event instance