public abstract class TypeVar<T> extends ReferenceType<T>
A type variable may be
capture conversion
Abstract Methods | |
---|---|
String |
getName()
Get the name of the type variable.
|
GenericDeclaration |
getDeclaringSite()
Where the type variable is declared.
|
ReferenceType<?> |
getUpperBound()
The upper bound of the type variable.
|
ReferenceType<?> |
getLowerBound()
The lower bound of the type variable.
|
public abstract String getName()
For example: "T".
public abstract GenericDeclaration getDeclaringSite()
The declaration site could be a generic class/interface or a generic method/constructor.
This method returns null if this type variable is created by
capture conversion
.
public abstract ReferenceType<?> getUpperBound()
public abstract ReferenceType<?> getLowerBound()
The lower bound is usually the null type
,
unless this type variable is created by
capture conversion
for a lower-bounded wildcard.