public static class AnnotatedTypeMirror.AnnotatedDeclaredType extends AnnotatedTypeMirror implements AnnotatedTypeMirror.AnnotatedReferenceType
AnnotatedTypeMirror.AnnotatedArrayType, AnnotatedTypeMirror.AnnotatedDeclaredType, AnnotatedTypeMirror.AnnotatedExecutableType, AnnotatedTypeMirror.AnnotatedIntersectionType, AnnotatedTypeMirror.AnnotatedNoType, AnnotatedTypeMirror.AnnotatedNullType, AnnotatedTypeMirror.AnnotatedPrimitiveType, AnnotatedTypeMirror.AnnotatedReferenceType, AnnotatedTypeMirror.AnnotatedTypeVariable, AnnotatedTypeMirror.AnnotatedUnionType, AnnotatedTypeMirror.AnnotatedWildcardType
Modifier and Type | Field and Description |
---|---|
protected AnnotatedTypeMirror.AnnotatedDeclaredType |
enclosingType
The enclosing Type
|
protected java.util.List<AnnotatedTypeMirror.AnnotatedDeclaredType> |
supertypes |
protected java.util.List<AnnotatedTypeMirror> |
typeArgs
Parametrized Type Arguments
|
actualType, annotations, atypeFactory
Modifier and Type | Method and Description |
---|---|
<R,P> R |
accept(AnnotatedTypeVisitor<R,P> v,
P p)
Applies a visitor to this type.
|
java.util.List<AnnotatedTypeMirror.AnnotatedDeclaredType> |
directSuperTypes() |
java.util.List<AnnotatedTypeMirror.AnnotatedDeclaredType> |
directSuperTypesField() |
AnnotatedTypeMirror.AnnotatedDeclaredType |
getCopy(boolean copyAnnotations)
Returns a shallow copy of this type.
|
AnnotatedTypeMirror.AnnotatedDeclaredType |
getEnclosingType()
Returns the enclosing type, as in the type of
A in the type
A.B . |
AnnotatedTypeMirror.AnnotatedDeclaredType |
getErased()
Returns the erasure type of the this type, according to JLS
specifications.
|
java.util.List<AnnotatedTypeMirror> |
getTypeArguments() |
javax.lang.model.type.DeclaredType |
getUnderlyingType()
Returns the underlying unannotated Java type, which this wraps
|
void |
setTypeArguments(java.util.List<? extends AnnotatedTypeMirror> ts)
Sets the type arguments on this type
|
AnnotatedTypeMirror |
substitute(java.util.Map<? extends AnnotatedTypeMirror,? extends AnnotatedTypeMirror> mappings)
Return a copy of this, with the given substitutions performed.
|
java.lang.String |
toString(boolean printInvisible)
A version of toString() that optionally outputs all type qualifiers,
including @InvisibleQualifier's.
|
boolean |
wasRaw()
Returns true if the type was raw, that is, type arguments were not
provided but instead inferred.
|
addAnnotation, addAnnotation, addAnnotations, addMissingAnnotations, clearAnnotations, createType, createTypeOfObject, directSuperTypes, equals, formatAnnotationMirror, formatAnnotationMirror, formatAnnotationMirrorArg, formatAnnotationString, getAnnotation, getAnnotation, getAnnotation, getAnnotationInHierarchy, getAnnotations, getEffectiveAnnotationInHierarchy, getEffectiveAnnotations, getExplicitAnnotations, getKind, hasAnnotation, hasAnnotation, hasAnnotation, hasAnnotationRelaxed, hasEffectiveAnnotation, hasEffectiveAnnotation, hasEffectiveAnnotationRelaxed, hasExplicitAnnotation, hasExplicitAnnotation, hasExplicitAnnotationRelaxed, hashCode, isAnnotatedInHierarchy, removeAnnotation, removeAnnotation, removeAnnotationInHierarchy, removeAnnotations, removeNonTopAnnotationInHierarchy, replaceAnnotation, replaceAnnotations, toString, toStringDebug
protected java.util.List<AnnotatedTypeMirror> typeArgs
protected AnnotatedTypeMirror.AnnotatedDeclaredType enclosingType
protected java.util.List<AnnotatedTypeMirror.AnnotatedDeclaredType> supertypes
@SideEffectFree public java.lang.String toString(boolean printInvisible)
AnnotatedTypeMirror
toString
in class AnnotatedTypeMirror
printInvisible
- Whether to always output invisible qualifiers.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 void setTypeArguments(java.util.List<? extends AnnotatedTypeMirror> ts)
ts
- the type argumentspublic java.util.List<AnnotatedTypeMirror> getTypeArguments()
public boolean wasRaw()
public javax.lang.model.type.DeclaredType getUnderlyingType()
AnnotatedTypeMirror
getUnderlyingType
in class AnnotatedTypeMirror
public java.util.List<AnnotatedTypeMirror.AnnotatedDeclaredType> directSuperTypes()
directSuperTypes
in class AnnotatedTypeMirror
public java.util.List<AnnotatedTypeMirror.AnnotatedDeclaredType> directSuperTypesField()
public AnnotatedTypeMirror.AnnotatedDeclaredType getCopy(boolean copyAnnotations)
AnnotatedTypeMirror
getCopy
in class AnnotatedTypeMirror
copyAnnotations
- whether copy should have annotations, i.e. whether
field annotations
should be copied.public AnnotatedTypeMirror substitute(java.util.Map<? extends AnnotatedTypeMirror,? extends AnnotatedTypeMirror> mappings)
AnnotatedTypeMirror
substitute
in class AnnotatedTypeMirror
public AnnotatedTypeMirror.AnnotatedDeclaredType getErased()
AnnotatedTypeMirror
getErased
in class AnnotatedTypeMirror
public AnnotatedTypeMirror.AnnotatedDeclaredType getEnclosingType()
A
in the type
A.B
.