public static class AnnotatedTypeMirror.AnnotatedWildcardType extends AnnotatedTypeMirror
? ? extends Number ? super T
A wildcard may have its upper bound explicitly set by an extends clause, its lower bound explicitly set by a super clause, or neither (but not both).
AnnotatedTypeMirror.AnnotatedArrayType, AnnotatedTypeMirror.AnnotatedDeclaredType, AnnotatedTypeMirror.AnnotatedExecutableType, AnnotatedTypeMirror.AnnotatedIntersectionType, AnnotatedTypeMirror.AnnotatedNoType, AnnotatedTypeMirror.AnnotatedNullType, AnnotatedTypeMirror.AnnotatedPrimitiveType, AnnotatedTypeMirror.AnnotatedTypeVariable, AnnotatedTypeMirror.AnnotatedUnionType, AnnotatedTypeMirror.AnnotatedWildcardTypeannotations, atypeFactory, EQUALITY_COMPARER, HASHCODE_VISITOR, underlyingType| Modifier and Type | Method and Description |
|---|---|
<R,P> R |
accept(AnnotatedTypeVisitor<R,P> v,
P p)
Applies a visitor to this type.
|
void |
addAnnotation(AnnotationMirror a)
Adds an annotation to this type.
|
AnnotatedTypeMirror.AnnotatedWildcardType |
deepCopy()
Returns a deep copy of this type with annotations.
|
AnnotatedTypeMirror.AnnotatedWildcardType |
deepCopy(boolean copyAnnotations)
Returns a deep copy of this type.
|
AnnotatedTypeMirror |
getErased()
Returns the erasure type of the this type, according to JLS specifications.
|
AnnotatedTypeMirror |
getExtendsBound()
Returns the upper bound of this wildcard.
|
AnnotatedTypeMirror |
getExtendsBoundField() |
AnnotatedTypeMirror |
getSuperBound()
Returns the lower bound of this wildcard.
|
AnnotatedTypeMirror |
getSuperBoundField() |
TypeVariable |
getTypeVariable()
Returns the type variable to which this wildcard is an argument.
|
WildcardType |
getUnderlyingType()
Returns the underlying unannotated Java type, which this wraps.
|
boolean |
isUninferredTypeArgument()
Returns whether or not this wildcard is a type argument for which inference failed to infer a
type.
|
void |
setUninferredTypeArgument()
Set that this wildcard is from an uninferred type argument.
|
AnnotatedTypeMirror.AnnotatedWildcardType |
shallowCopy()
Returns a shallow copy of this type with annotations.
|
AnnotatedTypeMirror.AnnotatedWildcardType |
shallowCopy(boolean copyAnnotations)
Returns a shallow copy of this type.
|
addAnnotation, addAnnotations, addMissingAnnotations, asUse, clearPrimaryAnnotations, containsUninferredTypeArguments, createType, createTypeOfObject, directSupertypes, equals, getAnnotation, getAnnotation, getAnnotation, getAnnotationInHierarchy, getAnnotations, getAnnotationsField, getEffectiveAnnotation, getEffectiveAnnotationInHierarchy, getEffectiveAnnotations, getExplicitAnnotations, getKind, getPrimitiveKind, getUnderlyingTypeHashCode, hasAnnotation, hasAnnotation, hasAnnotationRelaxed, hasEffectiveAnnotation, hasEffectiveAnnotation, hasEffectiveAnnotationRelaxed, hasExplicitAnnotation, hasExplicitAnnotation, hasExplicitAnnotationRelaxed, hashCode, isAnnotatedInHierarchy, isDeclaration, removeAnnotation, removeAnnotationByClass, removeAnnotationInHierarchy, removeAnnotations, removeNonTopAnnotationInHierarchy, replaceAnnotation, replaceAnnotations, toString, toStringpublic void addAnnotation(AnnotationMirror a)
AnnotatedTypeMirroraddAnnotation in class AnnotatedTypeMirrora - the annotation to addpublic AnnotatedTypeMirror getSuperBoundField()
public AnnotatedTypeMirror getSuperBound()
null.public AnnotatedTypeMirror getExtendsBoundField()
public AnnotatedTypeMirror getExtendsBound()
public TypeVariable getTypeVariable()
public <R,P> R accept(AnnotatedTypeVisitor<R,P> v, P p)
AnnotatedTypeMirroraccept in class AnnotatedTypeMirrorR - 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()
AnnotatedTypeMirrorgetUnderlyingType in class AnnotatedTypeMirrorpublic AnnotatedTypeMirror.AnnotatedWildcardType deepCopy(boolean copyAnnotations)
AnnotatedTypeMirrorNote: deepCopy provides two important properties in the returned copy:
deepCopy in class AnnotatedTypeMirrorpublic AnnotatedTypeMirror.AnnotatedWildcardType deepCopy()
AnnotatedTypeMirrorEach subclass implements this method with the subclass return type. The method body must always be a call to deepCopy(true).
deepCopy in class AnnotatedTypeMirrorAnnotatedTypeMirror.deepCopy(boolean)public AnnotatedTypeMirror.AnnotatedWildcardType shallowCopy(boolean copyAnnotations)
AnnotatedTypeMirrorshallowCopy in class AnnotatedTypeMirrorcopyAnnotations - whether copy should have annotations, i.e. whether field annotations should be copied.public AnnotatedTypeMirror.AnnotatedWildcardType shallowCopy()
AnnotatedTypeMirrorEach subclass implements this method with the subclass return type. The method body must always be a call to shallowCopy(true).
shallowCopy in class AnnotatedTypeMirrorAnnotatedTypeMirror.shallowCopy(boolean)public AnnotatedTypeMirror getErased()
AnnotatedTypeMirrorgetErased in class AnnotatedTypeMirrorAnnotatedTypeMirror.AnnotatedTypeVariable.getErased()public void setUninferredTypeArgument()
public boolean isUninferredTypeArgument()