public interface IntersectionType extends TypeMirror
交叉类型可以是隐式或显式声明的程序中。例如,类型参数的约束是一<T extends Number & Runnable>(隐含的)交叉型。作为RELEASE_8,这是由Number和Runnable作为边界的一个IntersectionType代表。
RELEASE_8,在参考实现的
IntersectionType是用来模拟一个演员表达明确的目标类型。
| Modifier and Type | Method and Description |
|---|---|
List<? extends TypeMirror> |
getBounds()
返回包含此交集类型的边界。
|
accept, equals, getKind, hashCode, toStringgetAnnotation, getAnnotationMirrors, getAnnotationsByTypeList<? 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.