public static class AnnotatedTypeMirror.AnnotatedWildcardType extends AnnotatedTypeMirror
AnnotatedTypeMirror.AnnotatedArrayType, AnnotatedTypeMirror.AnnotatedDeclaredType, AnnotatedTypeMirror.AnnotatedExecutableType, AnnotatedTypeMirror.AnnotatedIntersectionType, AnnotatedTypeMirror.AnnotatedNoType, AnnotatedTypeMirror.AnnotatedNullType, AnnotatedTypeMirror.AnnotatedPrimitiveType, AnnotatedTypeMirror.AnnotatedTypeVariable, AnnotatedTypeMirror.AnnotatedUnionType, AnnotatedTypeMirror.AnnotatedWildcardType
actualType, atypeFactory, equalityComparer, formatter, hashcodeVisitor
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() |
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() |
AnnotatedTypeMirror |
getExtendsBoundField() |
AnnotatedTypeMirror |
getSuperBound() |
AnnotatedTypeMirror |
getSuperBoundField() |
WildcardType |
getUnderlyingType()
Returns the underlying unannotated Java type, which this wraps
|
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, clearAnnotations, createType, createTypeOfObject, directSuperTypes, equals, getAnnotation, getAnnotation, getAnnotation, getAnnotationInHierarchy, getAnnotations, getAnnotationsField, getEffectiveAnnotation, getEffectiveAnnotationInHierarchy, getEffectiveAnnotations, getExplicitAnnotations, getKind, hasAnnotation, hasAnnotation, hasAnnotation, hasAnnotationRelaxed, hasEffectiveAnnotation, hasEffectiveAnnotation, hasEffectiveAnnotationRelaxed, hasExplicitAnnotation, hasExplicitAnnotation, hasExplicitAnnotationRelaxed, hashCode, isAnnotatedInHierarchy, isDeclaration, removeAnnotation, removeAnnotation, removeAnnotationInHierarchy, removeAnnotations, removeNonTopAnnotationInHierarchy, replaceAnnotation, replaceAnnotations, toString, toString
public void addAnnotation(AnnotationMirror a)
AnnotatedTypeMirror
addAnnotation
in class AnnotatedTypeMirror
a
- the annotation to addpublic AnnotatedTypeMirror getSuperBoundField()
public AnnotatedTypeMirror getSuperBound()
null
is returned.public AnnotatedTypeMirror getExtendsBoundField()
public AnnotatedTypeMirror getExtendsBound()
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 deepCopy(boolean copyAnnotations)
AnnotatedTypeMirror
deepCopy
in class AnnotatedTypeMirror
public AnnotatedTypeMirror.AnnotatedWildcardType deepCopy()
deepCopy
in class AnnotatedTypeMirror
AnnotatedTypeMirror.deepCopy(boolean)
public AnnotatedTypeMirror.AnnotatedWildcardType shallowCopy(boolean copyAnnotations)
AnnotatedTypeMirror
shallowCopy
in class AnnotatedTypeMirror
copyAnnotations
- whether copy should have annotations, i.e. whether
field annotations
should be copied.public AnnotatedTypeMirror.AnnotatedWildcardType shallowCopy()
AnnotatedTypeMirror
shallowCopy
in class AnnotatedTypeMirror
AnnotatedTypeMirror.shallowCopy(boolean)
public AnnotatedTypeMirror getErased()
AnnotatedTypeMirror
getErased
in class AnnotatedTypeMirror
AnnotatedTypeMirror.AnnotatedTypeVariable.getErased()