|
Copyright 2008 - 2009 Tony Morris, Runar Bjarnason, Tom Adams, Brad Clow, Ricky Clarkson, Nick Partridge, Jason Zaugg This software is released under an open source BSD licence. |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectfj.Class<T>
public final class Class<T>
A wrapper for a Class
that provides additional methods.
Method Summary | ||
---|---|---|
Class<T> |
clas()
Returns the underlying class. |
|
static
|
clas(Class<T> c)
Constructs a class from the given argument. |
|
Tree<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<Type>> |
interfaceParameters()
Provides this class's interface type parameter information as a list of trees. |
|
Tree<Type> |
superclassParameters()
Provides this class's superclass type parameter information as a Tree of the type expression. |
|
static Tree<Type> |
typeParameterTree(Type t)
Provides type parameter information as a Tree of the type expression. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public List<Class<? super T>> inheritance()
public Tree<Type> classParameters()
public Tree<Type> superclassParameters()
public List<Tree<Type>> interfaceParameters()
public static Tree<Type> typeParameterTree(Type t)
t
- The type (class) for which to get the generic type information.
public Class<T> clas()
public static <T> Class<T> clas(Class<T> c)
c
- The argument to construct this class with.
|
Copyright 2008 - 2009 Tony Morris, Runar Bjarnason, Tom Adams, Brad Clow, Ricky Clarkson, Nick Partridge, Jason Zaugg This software is released under an open source BSD licence. |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |