|
||||||||||
| 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 java.util.Set<java.lang.Class> |
findAllTypes(java.lang.Class cls)
Finds all super classes and interfaces for a given class |
|
static void |
findAllTypes(java.lang.Class cls,
java.util.Set<java.lang.Class> types)
Finds all super classes and interfaces for a given class |
|
static
|
getTypeArguments(java.lang.Class<T> baseClass,
java.lang.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 java.util.Set<java.lang.Class> findAllTypes(java.lang.Class cls)
cls - The class to scan
public static void findAllTypes(java.lang.Class cls,
java.util.Set<java.lang.Class> types)
cls - The class to scantypes - The collected related classes found
public static <T> java.util.List<java.lang.Class<?>> getTypeArguments(java.lang.Class<T> baseClass,
java.lang.Class<? extends T> childClass)
baseClass - the base classchildClass - the child class
java.lang.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 | |||||||||