public interface ExtendedTypeMirror extends AnnotatedConstruct
ExtendedTypeMirror
hierarchy follows the same structure as the standard
TypeMirror
hierarchy. We use these Extended
interfaces
instead of the standard TypeMirror
interfaces because in some cases
we require behavior that differs from the specification of TypeMirror
. (See the subinterfaces' documentation for details.)Modifier and Type | Method and Description |
---|---|
<R,P> R |
accept(ExtendedTypeVisitor<R,P> v,
P p)
Applies an
ExtendedTypeVisitor to this object. |
TypeKind |
getKind()
Returns the kind of this type.
|
TypeMirror |
getOriginalType()
Returns the original
TypeMirror representation of the type, if
possible. |
boolean |
isDeclaration()
Returns true iff this
ExtendedTypeMirror represents a type
declaration, rather than a use of a type. |
getAnnotation, getAnnotationMirrors, getAnnotationsByType
TypeMirror getOriginalType()
TypeMirror
representation of the type, if
possible. This method may return null if no TypeMirror
representation is available.TypeKind getKind()
<R,P> R accept(ExtendedTypeVisitor<R,P> v, P p)
ExtendedTypeVisitor
to this object.boolean isDeclaration()
ExtendedTypeMirror
represents a type
declaration, rather than a use of a type. This can happen only because
the underlying annotation-based framework uses AnnotatedTypeMirror
s for both
declarations and uses of types. Once the framework is fixed to no
longer mix the two, this method will be removed.