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()
Submit a bug or feature
For further API reference and developer documentation, see Java SE Documentation. That documentation contains more detailed, developer-targeted descriptions, with conceptual overviews, definitions of terms, workarounds, and working code examples.
Copyright © 1993, 2014, Oracle and/or its affiliates. All rights reserved.