public interface IntersectionType extends TypeMirror, AnnotatedConstruct
javax.lang.model.type.IntersectionType
in JDK 8.
Implementations may implement both javax.lang.model.type.IntersectionType
and this interface. At some time
in the future, when Java 7 compatibility is no longer required, this interface will be deprecated and eventually
removed in favor of javax.lang.model.type.IntersectionType
.
Modifier and Type | Method and Description |
---|---|
List<? extends TypeMirror> |
getBounds()
Return the bounds comprising this intersection type.
|
boolean |
isIntersectionType()
Returns whether this type mirror represents an intersection type.
|
accept, equals, getKind, hashCode, toString
getAnnotation, getAnnotationMirrors, getAnnotationsByType
getAnnotation, getAnnotationMirrors, getAnnotationsByType
List<? extends TypeMirror> getBounds()
boolean isIntersectionType()
Since implementations may choose to implement multiple TypeMirror
sub-interfaces at the same time,
this method exists so that an object can explicitly indicate whether it represents an intersection type.
Copyright © 2014–2015. All rights reserved.