public interface IntersectionType extends TypeMirror
交集类型可以在程序中隐式或明确声明。 例如,类型参数<T extends Number & Runnable>
是(隐式)交集类型。
由于RELEASE_8
,这是通过一个表示IntersectionType
与Number
和Runnable
作为其边界。
RELEASE_8
,在参考实现中,
IntersectionType
用于建模转换表达式的显式目标类型。
Modifier and Type | Method and Description |
---|---|
List<? extends TypeMirror> |
getBounds()
返回包含此交集类型的边界。
|
accept,
equals,
getKind,
hashCode,
toString
getAnnotation,
getAnnotationMirrors,
getAnnotationsByType
List<? extends TypeMirror> getBounds()