public interface TypeVariable extends ReferenceType
TypeParameterElement
Modifier and Type | Method and Description |
---|---|
Element
|
asElement()
返回与此类型变量相对应的元素。
|
TypeMirror
|
getLowerBound()
返回此类型变量的下限。
|
TypeMirror
|
getUpperBound()
返回此类型变量的上限。
|
accept,
equals,
getKind,
hashCode,
toString
getAnnotation,
getAnnotationMirrors,
getAnnotationsByType
Element asElement()
TypeMirror getUpperBound()
如果此类型变量被声明为没有明确的上限,则结果为java.lang.Object
。 如果它被声明为多个上限,则结果为intersection type ; 可以通过检查结果的bounds找到个体界限。
TypeMirror getLowerBound()