public abstract class WrappedAnnotatedTypeMirror extends Object implements ExtendedTypeMirror
AnnotatedTypeMirror to the ExtendedTypeMirror interface. Instances of this class are immutable.| Modifier and Type | Class and Description |
|---|---|
static class |
WrappedAnnotatedTypeMirror.WrappedAnnotatedArrayType |
static class |
WrappedAnnotatedTypeMirror.WrappedAnnotatedDeclaredType |
static class |
WrappedAnnotatedTypeMirror.WrappedAnnotatedExecutableType |
static class |
WrappedAnnotatedTypeMirror.WrappedAnnotatedIntersectionType |
static class |
WrappedAnnotatedTypeMirror.WrappedAnnotatedNoType |
static class |
WrappedAnnotatedTypeMirror.WrappedAnnotatedNullType |
static class |
WrappedAnnotatedTypeMirror.WrappedAnnotatedPrimitiveType |
static class |
WrappedAnnotatedTypeMirror.WrappedAnnotatedTypeVariable |
static class |
WrappedAnnotatedTypeMirror.WrappedAnnotatedUnionType |
static class |
WrappedAnnotatedTypeMirror.WrappedAnnotatedWildcardType |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj) |
<A extends Annotation> |
getAnnotation(Class<A> annotationType) |
List<? extends AnnotationMirror> |
getAnnotationMirrors() |
<A extends Annotation> |
getAnnotationsByType(Class<A> annotationType) |
TypeKind |
getKind()
Returns the kind of this type.
|
TypeMirror |
getOriginalType()
Returns the original
TypeMirror representation of the type, if
possible. |
int |
hashCode() |
boolean |
isDeclaration()
Returns true iff this
ExtendedTypeMirror represents a type
declaration, rather than a use of a type. |
String |
toString() |
AnnotatedTypeMirror |
unwrap()
Unwrap a
WrappedAnnotatedTypeMirror to obtain the original
AnnotatedTypeMirror. |
static WrappedAnnotatedTypeMirror |
wrap(AnnotatedTypeMirror atm)
Constructs a
WrappedAnnotatedTypeMirror from an AnnotatedTypeMirror. |
clone, finalize, getClass, notify, notifyAll, wait, wait, waitacceptpublic static WrappedAnnotatedTypeMirror wrap(AnnotatedTypeMirror atm)
WrappedAnnotatedTypeMirror from an AnnotatedTypeMirror. The WrappedAnnotatedTypeMirror returned
by this method will be backed by a deep copy of the input
AnnotatedTypeMirror, so later mutations of the input will not
affect the wrapped version.public AnnotatedTypeMirror unwrap()
WrappedAnnotatedTypeMirror to obtain the original
AnnotatedTypeMirror.public TypeMirror getOriginalType()
ExtendedTypeMirrorTypeMirror representation of the type, if
possible. This method may return null if no TypeMirror
representation is available.getOriginalType in interface ExtendedTypeMirrorpublic TypeKind getKind()
ExtendedTypeMirrorgetKind in interface ExtendedTypeMirrorpublic boolean isDeclaration()
ExtendedTypeMirrorExtendedTypeMirror represents a type
declaration, rather than a use of a type. This can happen only because
the underlying annotation-based framework uses AnnotatedTypeMirrors for both
declarations and uses of types. Once the framework is fixed to no
longer mix the two, this method will be removed.isDeclaration in interface ExtendedTypeMirrorpublic <A extends Annotation> A getAnnotation(Class<A> annotationType)
getAnnotation in interface AnnotatedConstructpublic List<? extends AnnotationMirror> getAnnotationMirrors()
getAnnotationMirrors in interface AnnotatedConstructpublic <A extends Annotation> A[] getAnnotationsByType(Class<A> annotationType)
getAnnotationsByType in interface AnnotatedConstruct