public static class AnnotatedTypeMirror.AnnotatedWildcardType extends AnnotatedTypeMirror
AnnotatedTypeMirror.AnnotatedArrayType, AnnotatedTypeMirror.AnnotatedDeclaredType, AnnotatedTypeMirror.AnnotatedExecutableType, AnnotatedTypeMirror.AnnotatedIntersectionType, AnnotatedTypeMirror.AnnotatedNoType, AnnotatedTypeMirror.AnnotatedNullType, AnnotatedTypeMirror.AnnotatedPrimitiveType, AnnotatedTypeMirror.AnnotatedReferenceType, AnnotatedTypeMirror.AnnotatedTypeVariable, AnnotatedTypeMirror.AnnotatedWildcardType
annotations, atypeFactory, element
Modifier and Type | Method and Description |
---|---|
<R,P> R |
accept(AnnotatedTypeVisitor<R,P> v,
P p)
Applies a visitor to this type.
|
AnnotatedTypeMirror.AnnotatedWildcardType |
getCopy(boolean copyAnnotations)
Returns a shallow copy of this type.
|
Set<AnnotationMirror> |
getEffectiveAnnotations()
Returns the "effective" annotations on this type, i.e.
|
AnnotatedTypeMirror |
getEffectiveExtendsBound() |
Set<AnnotationMirror> |
getEffectiveExtendsBoundAnnotations() |
AnnotatedTypeMirror |
getEffectiveSuperBound() |
AnnotatedTypeMirror |
getErased()
Returns the erasure type of the this type, according to JLS
specifications.
|
AnnotatedTypeMirror |
getExtendsBound() |
AnnotatedTypeMirror |
getExtendsBoundField() |
AnnotatedTypeMirror |
getSuperBound() |
AnnotatedTypeMirror |
getSuperBoundField() |
WildcardType |
getUnderlyingType()
Returns the underlying unannotated Java type, which this wraps
|
AnnotatedTypeMirror |
substitute(Map<? extends AnnotatedTypeMirror,? extends AnnotatedTypeMirror> mappings)
Return a copy of this, with the given substitutions performed.
|
String |
toString(boolean printInvisible)
A version of toString() that optionally outputs all type qualifiers,
including @InvisibleQualifier's.
|
addAnnotation, addAnnotation, addAnnotations, clearAnnotations, copyFields, createType, createTypeOfObject, directSuperTypes, directSuperTypes, equals, formatAnnotationMirror, formatAnnotationMirrorArg, formatAnnotationString, getAnnotation, getAnnotation, getAnnotationInHierarchy, getAnnotations, getElement, getExplicitAnnotations, getKind, hasAnnotation, hasAnnotation, hasAnnotation, hasAnnotationRelaxed, hasEffectiveAnnotation, hasEffectiveAnnotationRelaxed, hasExplicitAnnotation, hasExplicitAnnotation, hasExplicitAnnotationRelaxed, hashCode, isAnnotated, isAnnotatedInHierarchy, isUnqualified, removeAnnotation, removeAnnotation, removeAnnotationInHierarchy, removeAnnotations, replaceAnnotation, replaceAnnotations, toString, toStringDebug
public AnnotatedTypeMirror getSuperBoundField()
public AnnotatedTypeMirror getSuperBound()
null
is returned.public AnnotatedTypeMirror getEffectiveSuperBound()
public AnnotatedTypeMirror getExtendsBoundField()
public AnnotatedTypeMirror getExtendsBound()
public AnnotatedTypeMirror getEffectiveExtendsBound()
public Set<AnnotationMirror> getEffectiveExtendsBoundAnnotations()
public Set<AnnotationMirror> getEffectiveAnnotations()
AnnotatedTypeMirror
getEffectiveAnnotations
in class AnnotatedTypeMirror
public <R,P> R accept(AnnotatedTypeVisitor<R,P> v, P p)
AnnotatedTypeMirror
accept
in class AnnotatedTypeMirror
R
- the return type of the visitor's methodsP
- the type of the additional parameter to the visitor's methodsv
- the visitor operating on this typep
- additional parameter to the visitorpublic WildcardType getUnderlyingType()
AnnotatedTypeMirror
getUnderlyingType
in class AnnotatedTypeMirror
public AnnotatedTypeMirror.AnnotatedWildcardType getCopy(boolean copyAnnotations)
AnnotatedTypeMirror
getCopy
in class AnnotatedTypeMirror
copyAnnotations
- whether copy should have annotationspublic AnnotatedTypeMirror substitute(Map<? extends AnnotatedTypeMirror,? extends AnnotatedTypeMirror> mappings)
AnnotatedTypeMirror
substitute
in class AnnotatedTypeMirror
public AnnotatedTypeMirror getErased()
AnnotatedTypeMirror
getErased
in class AnnotatedTypeMirror
public String toString(boolean printInvisible)
AnnotatedTypeMirror
toString
in class AnnotatedTypeMirror
printInvisible
- Whether to always output invisible qualifiers.