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