|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.atlassian.plugin.util.ClassUtils
public class ClassUtils
Class utility methods
| Method Summary | ||
|---|---|---|
static Set<Class> |
findAllTypes(Class cls)
Finds all super classes and interfaces for a given class |
|
static void |
findAllTypes(Class cls,
Set<Class> types)
Finds all super classes and interfaces for a given class |
|
static
|
getTypeArguments(Class<T> baseClass,
Class<? extends T> childClass)
Get the actual type arguments a child class has used to extend a generic base class. |
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static Set<Class> findAllTypes(Class cls)
cls - The class to scan
public static void findAllTypes(Class cls,
Set<Class> types)
cls - The class to scantypes - The collected related classes found
public static <T> List<Class<?>> getTypeArguments(Class<T> baseClass,
Class<? extends T> childClass)
baseClass - the base classchildClass - the child class
IllegalArgumentException - If the child class is not the base of the baseClass
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||