public final class Class<T>
extends java.lang.Object
Class
that provides additional methods.Modifier and Type | Method and Description |
---|---|
java.lang.Class<T> |
clas()
Returns the underlying class.
|
static <T> Class<T> |
clas(java.lang.Class<T> c)
Constructs a class from the given argument.
|
Tree<java.lang.reflect.Type> |
classParameters()
Provides this class's type parameter information as a Tree of the type expression.
|
List<Class<? super T>> |
inheritance()
Returns the inheritance hierarchy of this class.
|
List<Tree<java.lang.reflect.Type>> |
interfaceParameters()
Provides this class's interface type parameter information as a list of trees.
|
Tree<java.lang.reflect.Type> |
superclassParameters()
Provides this class's superclass type parameter information as a Tree of the type expression.
|
static Tree<java.lang.reflect.Type> |
typeParameterTree(java.lang.reflect.Type t)
Provides type parameter information as a Tree of the type expression.
|
public List<Class<? super T>> inheritance()
public Tree<java.lang.reflect.Type> classParameters()
public Tree<java.lang.reflect.Type> superclassParameters()
public List<Tree<java.lang.reflect.Type>> interfaceParameters()
public static Tree<java.lang.reflect.Type> typeParameterTree(java.lang.reflect.Type t)
t
- The type (class) for which to get the generic type information.public java.lang.Class<T> clas()
public static <T> Class<T> clas(java.lang.Class<T> c)
c
- The argument to construct this class with.