annotation, instance, owner| Constructor and Description |
|---|
MethodHandleHandler(java.lang.Class<?> owner,
java.lang.Object instance,
EventHandler annotation,
java.lang.invoke.MethodHandle methodHandle) |
| Modifier and Type | Method and Description |
|---|---|
void |
call(java.lang.Object event)
Call the event handler with the given event instance.
|
java.lang.String |
toString() |
getAnnotation, getInstance, getOwner, isStaticpublic MethodHandleHandler(java.lang.Class<?> owner,
@Nullable
java.lang.Object instance,
EventHandler annotation,
java.lang.invoke.MethodHandle methodHandle)
owner - The owner of the handler methodinstance - The instance of the handler ownerannotation - The EventHandler annotation of the handler methodmethodHandle - The handler method handlepublic void call(java.lang.Object event)
AHandler