public static class AnnotatedTypeMirror.AnnotatedTypeVariable extends @Mutable AnnotatedTypeMirror implements AnnotatedTypeMirror.AnnotatedReferenceType
AnnotatedTypeMirror.AnnotatedArrayType, AnnotatedTypeMirror.AnnotatedDeclaredType, AnnotatedTypeMirror.AnnotatedExecutableType, AnnotatedTypeMirror.AnnotatedNoType, AnnotatedTypeMirror.AnnotatedNullType, AnnotatedTypeMirror.AnnotatedPrimitiveType, AnnotatedTypeMirror.AnnotatedReferenceType, AnnotatedTypeMirror.AnnotatedTypeVariable, AnnotatedTypeMirror.AnnotatedWildcardTypeannotationFactory, annotations, element, enclosingType, env, typeFactory, uid| Modifier and Type | Method and Description |
|---|---|
<R extends @NonNull Object,P extends @NonNull Object> |
accept(AnnotatedTypeVisitor<R,P> v,
P p)
Applies a visitor to this type.
|
AnnotatedTypeMirror.AnnotatedTypeVariable |
getCopy(boolean copyAnnotations)
Returns a shallow copy of this type.
|
Set<@Nullable AnnotationMirror> |
getEffectiveAnnotations()
Returns the "effective" annotations on this type, i.e.
|
@Mutable AnnotatedTypeMirror |
getEffectiveLowerBound() |
@Mutable AnnotatedTypeMirror |
getEffectiveUpperBound() |
@Mutable AnnotatedTypeMirror |
getErased()
Returns the erasure type of the this type, according to JLS
specifications.
|
@Mutable AnnotatedTypeMirror |
getLowerBound() |
@Mutable AnnotatedTypeMirror |
getLowerBoundField()
Get the lower bound field directly, bypassing any lazy initialization.
|
TypeVariable |
getUnderlyingType()
Returns the underlying unannotated Java type, which this wraps
|
@Mutable AnnotatedTypeMirror |
getUpperBound()
Get the upper bound of the type variable, possibly lazily initializing it.
|
@Mutable AnnotatedTypeMirror |
getUpperBoundField()
Get the upper bound field directly, bypassing any lazy initialization.
|
int |
hashCode() |
@Mutable AnnotatedTypeMirror |
substitute(Map<? extends @Mutable AnnotatedTypeMirror,? extends @Mutable AnnotatedTypeMirror> mappings)
Return a copy of this, with the given substitutions performed.
|
@ReadOnly 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, formatAnnotationString, getAnnotation, getAnnotation, getAnnotation, getAnnotationInHierarchy, getAnnotations, getElement, getEnclosingType, getExplicitAnnotations, getKind, hasAnnotation, hasAnnotation, hasAnnotationRelaxed, hasEffectiveAnnotation, hasEffectiveAnnotationRelaxed, hasExplicitAnnotation, hasExplicitAnnotation, hasExplicitAnnotationRelaxed, isAnnotated, isAnnotatedInHierarchy, isUnqualified, removeAnnotation, removeAnnotation, removeAnnotationInHierarchy, removeAnnotations, removeUnqualified, replaceAnnotation, replaceAnnotations, toString, toStringDebugpublic <R extends @NonNull Object,P extends @NonNull Object> R accept(AnnotatedTypeVisitor<R,P> v, P p)
AnnotatedTypeMirroraccept in class @Mutable 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 TypeVariable getUnderlyingType()
AnnotatedTypeMirrorgetUnderlyingType in class @Mutable AnnotatedTypeMirrorpublic @Mutable AnnotatedTypeMirror getLowerBoundField()
public @Mutable AnnotatedTypeMirror getLowerBound()
#getEffectiveLowerBoundAnnotationspublic @Mutable AnnotatedTypeMirror getEffectiveLowerBound()
public @Mutable AnnotatedTypeMirror getUpperBoundField()
public @Mutable AnnotatedTypeMirror getUpperBound()
#getEffectiveUpperBoundAnnotationspublic @Mutable AnnotatedTypeMirror getEffectiveUpperBound()
public Set<@Nullable AnnotationMirror> getEffectiveAnnotations()
AnnotatedTypeMirrorgetEffectiveAnnotations in class @Mutable AnnotatedTypeMirrorpublic AnnotatedTypeMirror.AnnotatedTypeVariable getCopy(boolean copyAnnotations)
AnnotatedTypeMirrorgetCopy in class @Mutable AnnotatedTypeMirrorcopyAnnotations - whether copy should have annotationspublic @Mutable AnnotatedTypeMirror getErased()
AnnotatedTypeMirrorgetErased in class @Mutable AnnotatedTypeMirrorpublic @Mutable AnnotatedTypeMirror substitute(Map<? extends @Mutable AnnotatedTypeMirror,? extends @Mutable AnnotatedTypeMirror> mappings)
AnnotatedTypeMirrorsubstitute in class @Mutable AnnotatedTypeMirrorpublic @ReadOnly String toString(boolean printInvisible)
AnnotatedTypeMirrortoString in class @Mutable AnnotatedTypeMirrorprintInvisible - Whether to always output invisible qualifiers.public int hashCode()
hashCode in class @Mutable AnnotatedTypeMirror