public class ReflectionUtils extends Object
| Constructor and Description | 
|---|
| ReflectionUtils() | 
| Modifier and Type | Method and Description | 
|---|---|
| static Class<?> | getClass(Type type)Get the underlying class for a type, or null if the type is a variable
 type. | 
| static Method | getMain(Class<?> clz)Get the "public static main(String [] args)" method of the class,
 or null if it doesn't have one. | 
| static <T> List<Class<?>> | getTypeArguments(Class<T> baseClass,
                Class<? extends T> childClass)Get the actual type arguments a child class has used to extend a generic
 base class. | 
| static boolean | hasMain(Class<?> clz)Test if a class has a "public static main(String [] args)" method | 
public ReflectionUtils()
public static boolean hasMain(Class<?> clz)
clz - the classpublic static Method getMain(Class<?> clz)
clz - the classpublic static Class<?> getClass(Type type)
type - the typepublic static <T> List<Class<?>> getTypeArguments(Class<T> baseClass, Class<? extends T> childClass)
T - The type of the base classbaseClass - the base classchildClass - the child class