public final class Reflections
extends java.lang.Object
| Modifier and Type | Method and Description |
|---|---|
static java.util.List<java.lang.reflect.Method> |
getAllMethods(java.lang.Class<?> c)
Finds all
Methods defined by a class, including private ones
and ones that are inherited from classes. |
static java.util.List<java.lang.reflect.Method> |
getAllMethods(java.lang.Class<?> c,
boolean sort)
Finds all
Methods defined by a class, including private ones
and ones that are inherited from classes. |
static java.util.List<java.lang.Class<?>> |
getTopClasses(java.lang.Class<?> c)
Returns a hierarchy of classes that are contained by the given class.
|
public static java.util.List<java.lang.reflect.Method> getAllMethods(java.lang.Class<?> c)
Methods defined by a class, including private ones
and ones that are inherited from classes. This will
not respect @CommandPriorityc - Class to get forpublic static java.util.List<java.lang.reflect.Method> getAllMethods(java.lang.Class<?> c,
boolean sort)
Methods defined by a class, including private ones
and ones that are inherited from classes.c - Class to get forsort - If it should sort them according to the @CommandPriority
annotationpublic static java.util.List<java.lang.Class<?>> getTopClasses(java.lang.Class<?> c)
c - Class to find for