public class EventReflection extends Object
| Constructor and Description |
|---|
EventReflection() |
| Modifier and Type | Method and Description |
|---|---|
static Class<?> |
getEventFromMethod(Method method)
Obtain event class from reflected method.
|
static EventPriority |
getEventPriorityFromMethod(Method method)
Obtain
EventPriority from reflection method. |
static List<Method> |
getHandledMethodsFrom(Class<?> classListener)
This method will obtain all methods with the EventHandler annotation.
|
static boolean |
getIgnoreCancelledFromMethod(Method method)
Obtain 'ignoreCancelled' value from reflection method.
|
static boolean |
isHandledMethod(Method method)
Check if specified method its an Event handler.
|
public static boolean isHandledMethod(Method method)
method - Specified method to check.public static List<Method> getHandledMethodsFrom(Class<?> classListener)
classListener - Listener class handling events.public static Class<?> getEventFromMethod(Method method)
method - Reflected method to find event class.public static EventPriority getEventPriorityFromMethod(Method method)
EventPriority from reflection method.method - Reflected method to find the EventPriority.public static boolean getIgnoreCancelledFromMethod(Method method)
method - Reflected method to get the 'ignoreCancelled' value.Copyright © 2020. All rights reserved.