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, wait
accept
public 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()
ExtendedTypeMirror
TypeMirror
representation of the type, if
possible. This method may return null if no TypeMirror
representation is available.getOriginalType
in interface ExtendedTypeMirror
public TypeKind getKind()
ExtendedTypeMirror
getKind
in interface ExtendedTypeMirror
public boolean isDeclaration()
ExtendedTypeMirror
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.isDeclaration
in interface ExtendedTypeMirror
public <A extends Annotation> A getAnnotation(Class<A> annotationType)
getAnnotation
in interface AnnotatedConstruct
public List<? extends AnnotationMirror> getAnnotationMirrors()
getAnnotationMirrors
in interface AnnotatedConstruct
public <A extends Annotation> A[] getAnnotationsByType(Class<A> annotationType)
getAnnotationsByType
in interface AnnotatedConstruct