Package fj
Class Class<T>
java.lang.Object
fj.Class<T>
A wrapper for a
Class
that provides additional methods.-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionclas()
Returns the underlying class.static <T> Class
<T> Constructs a class from the given argument.Provides this class's type parameter information as a Tree of the type expression.Returns the inheritance hierarchy of this class.Provides this class's interface type parameter information as a list of trees.Provides this class's superclass type parameter information as a Tree of the type expression.Provides type parameter information as a Tree of the type expression.
-
Field Details
-
c
-
-
Constructor Details
-
Class
-
-
Method Details
-
inheritance
Returns the inheritance hierarchy of this class.- Returns:
- The inheritance hierarchy of this class.
-
classParameters
Provides this class's type parameter information as a Tree of the type expression. Only descends into Parameterized classes. Non-abstract classes, or classes that don't implement an interface, are treated as raw types. Arrays, Type Variables, and Wildcards are treated as opaque Types.- Returns:
- The rose tree representing the type expression for this class.
-
superclassParameters
Provides this class's superclass type parameter information as a Tree of the type expression. Only descends into Parameterized classes. Non-abstract classes, or classes that don't implement an interface, are treated as raw types. Arrays, Type Variables, and Wildcards are treated as opaque Types.- Returns:
- The Tree representing the type expression for this class's superclass.
-
interfaceParameters
Provides this class's interface type parameter information as a list of trees.- Returns:
- A list of trees representing the type expressions for this class's interfaces.
-
typeParameterTree
Provides type parameter information as a Tree of the type expression. Only descends into Parameterized classes. Non-abstract classes, or classes that don't implement an interface, are treated as raw types. Arrays, Type Variables, and Wildcards are treated as opaque Types.- Parameters:
t
- The type (class) for which to get the generic type information.- Returns:
- Type parameter information as a rose tree of the type expression.
-
clas
Returns the underlying class.- Returns:
- The underlying class.
-
clas
Constructs a class from the given argument.- Parameters:
c
- The argument to construct this class with.- Returns:
- A class from the given argument.
-