public interface TypeVariable extends Type
java.lang.Object
and is represented as such.
If one bound is declared, it is a type variable or a class type, possibly parameterized.
If more than one bound is declared, the first bound is a class type or an interface type,
possibly parameterized, and the following bounds are interface types, possibly parameterized.Modifier and Type | Method and Description |
---|---|
default TypeVariable |
asTypeVariable()
Returns this type as a type variable.
|
java.util.List<Type> |
bounds()
Returns the bounds declared for this type variable.
|
default Type.Kind |
kind()
Returns the kind of this type.
|
java.lang.String |
name()
Returns the name of this type variable.
|
asArray, asClass, asDeclaration, asParameterizedType, asPrimitive, asType, asVoid, asWildcardType, isArray, isClass, isDeclaration, isParameterizedType, isPrimitive, isType, isTypeVariable, isVoid, isWildcardType
annotation, annotations, annotations, hasAnnotation, hasAnnotation, repeatableAnnotation
java.lang.String name()
null
java.util.List<Type> bounds()
null
or emptydefault Type.Kind kind()
Type
default TypeVariable asTypeVariable()
Type
asTypeVariable
in interface Type
null