-
- All Superinterfaces:
-
AnnotatedConstruct,TypeMirror
public interface WildcardType extends TypeMirror
表示通配符类型参数。 例子包括:? ? extends Number ? super T通配符的上限可以由
extends子句显式设置,其下限由super子句显式设置,或者两者都没有(但不是两者)。- 从以下版本开始:
- 1.6
-
-
方法摘要
所有方法 实例方法 抽象方法 变量和类型 方法 描述 TypeMirrorgetExtendsBound()返回此通配符的上限。TypeMirrorgetSuperBound()返回此通配符的下限。-
声明方法的接口 javax.lang.model.AnnotatedConstruct
getAnnotation, getAnnotationMirrors, getAnnotationsByType
-
-
-
-
方法详细信息
-
getExtendsBound
TypeMirror getExtendsBound()
返回此通配符的上限。 如果未显式声明上限,则返回null。- 结果
- 此通配符的上限
-
getSuperBound
TypeMirror getSuperBound()
返回此通配符的下限。 如果未显式声明null则返回null。- 结果
- 此通配符的下限
-
-