public static class WrappedAnnotatedTypeMirror.WrappedAnnotatedDeclaredType extends WrappedAnnotatedTypeMirror implements ExtendedDeclaredType, ExtendedTypeDeclaration
WrappedAnnotatedTypeMirror.WrappedAnnotatedArrayType, WrappedAnnotatedTypeMirror.WrappedAnnotatedDeclaredType, WrappedAnnotatedTypeMirror.WrappedAnnotatedExecutableType, WrappedAnnotatedTypeMirror.WrappedAnnotatedIntersectionType, WrappedAnnotatedTypeMirror.WrappedAnnotatedNoType, WrappedAnnotatedTypeMirror.WrappedAnnotatedNullType, WrappedAnnotatedTypeMirror.WrappedAnnotatedPrimitiveType, WrappedAnnotatedTypeMirror.WrappedAnnotatedTypeVariable, WrappedAnnotatedTypeMirror.WrappedAnnotatedUnionType, WrappedAnnotatedTypeMirror.WrappedAnnotatedWildcardType
Modifier and Type | Method and Description |
---|---|
<R,P> R |
accept(ExtendedTypeVisitor<R,P> v,
P p)
Applies an
ExtendedTypeVisitor to this object. |
Element |
asElement()
Returns the element corresponding to this type.
|
WrappedAnnotatedTypeMirror |
getEnclosingType()
Returns the type of the innermost enclosing instance, or a
ExtendedNoType of kind NONE if there is no enclosing
instance. |
DeclaredType |
getOriginalType()
Returns the original
TypeMirror representation of the type, if
possible. |
List<? extends WrappedAnnotatedTypeMirror> |
getTypeArguments()
Returns the actual type arguments of this type.
|
List<? extends WrappedAnnotatedTypeMirror.WrappedAnnotatedTypeVariable> |
getTypeParameters()
Returns the type parameters declared by this type.
|
AnnotatedTypeMirror.AnnotatedDeclaredType |
unwrap()
Unwrap a
WrappedAnnotatedTypeMirror to obtain the original
AnnotatedTypeMirror . |
equals, getAnnotation, getAnnotationMirrors, getAnnotationsByType, getKind, hashCode, isDeclaration, toString, wrap
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
getKind, isDeclaration
getAnnotation, getAnnotationMirrors, getAnnotationsByType
public DeclaredType getOriginalType()
ExtendedTypeMirror
TypeMirror
representation of the type, if
possible. This method may return null if no TypeMirror
representation is available.getOriginalType
in interface ExtendedTypeMirror
getOriginalType
in class WrappedAnnotatedTypeMirror
public AnnotatedTypeMirror.AnnotatedDeclaredType unwrap()
WrappedAnnotatedTypeMirror
WrappedAnnotatedTypeMirror
to obtain the original
AnnotatedTypeMirror
.unwrap
in class WrappedAnnotatedTypeMirror
public <R,P> R accept(ExtendedTypeVisitor<R,P> v, P p)
ExtendedTypeMirror
ExtendedTypeVisitor
to this object.accept
in interface ExtendedTypeMirror
public Element asElement()
ExtendedDeclaredType
asElement
in interface ExtendedDeclaredType
asElement
in interface ExtendedTypeDeclaration
public WrappedAnnotatedTypeMirror getEnclosingType()
ExtendedDeclaredType
ExtendedNoType
of kind NONE
if there is no enclosing
instance. Only types corresponding to inner classes have an enclosing
instance.getEnclosingType
in interface ExtendedDeclaredType
getEnclosingType
in interface ExtendedTypeDeclaration
public List<? extends WrappedAnnotatedTypeMirror> getTypeArguments()
ExtendedDeclaredType
Outer<String>.Inner<Number>
), only the type
arguments of the innermost type are included.getTypeArguments
in interface ExtendedDeclaredType
public List<? extends WrappedAnnotatedTypeMirror.WrappedAnnotatedTypeVariable> getTypeParameters()
ExtendedTypeDeclaration
Outer<String>.Inner<Number>
), only the type
parameters of the innermost type are included.getTypeParameters
in interface ExtendedTypeDeclaration