public static class AnnotatedTypeMirror.AnnotatedExecutableType extends @Mutable AnnotatedTypeMirror
AnnotatedTypeMirror.AnnotatedArrayType, AnnotatedTypeMirror.AnnotatedDeclaredType, AnnotatedTypeMirror.AnnotatedExecutableType, AnnotatedTypeMirror.AnnotatedNoType, AnnotatedTypeMirror.AnnotatedNullType, AnnotatedTypeMirror.AnnotatedPrimitiveType, AnnotatedTypeMirror.AnnotatedReferenceType, AnnotatedTypeMirror.AnnotatedTypeVariable, AnnotatedTypeMirror.AnnotatedWildcardType
annotationFactory, 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.AnnotatedExecutableType |
getCopy(boolean copyAnnotations)
Returns a shallow copy of this type.
|
@NonNull ExecutableElement |
getElement()
Returns the element associated with the value the type represent, if any.
|
AnnotatedTypeMirror.AnnotatedExecutableType |
getErased()
Returns the erasure type of the this type, according to JLS
specifications.
|
List<@Mutable AnnotatedTypeMirror> |
getParameterTypes() |
AnnotatedTypeMirror.AnnotatedDeclaredType |
getReceiverType() |
@Mutable AnnotatedTypeMirror |
getReturnType() |
List<@Mutable AnnotatedTypeMirror> |
getThrownTypes() |
List<AnnotatedTypeMirror.AnnotatedTypeVariable> |
getTypeVariables() |
ExecutableType |
getUnderlyingType()
Returns the underlying unannotated Java type, which this wraps
|
boolean |
isVarArgs() |
AnnotatedTypeMirror.AnnotatedExecutableType |
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, getEffectiveAnnotations, getEnclosingType, getExplicitAnnotations, getKind, hasAnnotation, hasAnnotation, hasAnnotationRelaxed, hasEffectiveAnnotation, hasEffectiveAnnotationRelaxed, hasExplicitAnnotation, hasExplicitAnnotation, hasExplicitAnnotationRelaxed, hashCode, isAnnotated, isAnnotatedInHierarchy, isUnqualified, removeAnnotation, removeAnnotation, removeAnnotationInHierarchy, removeAnnotations, removeUnqualified, replaceAnnotation, replaceAnnotations, toString, toStringDebug
public boolean isVarArgs()
public <R extends @NonNull Object,P extends @NonNull Object> R accept(AnnotatedTypeVisitor<R,P> v, P p)
AnnotatedTypeMirror
accept
in class @Mutable 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 ExecutableType getUnderlyingType()
AnnotatedTypeMirror
getUnderlyingType
in class @Mutable AnnotatedTypeMirror
public List<@Mutable AnnotatedTypeMirror> getParameterTypes()
public @Mutable AnnotatedTypeMirror getReturnType()
public AnnotatedTypeMirror.AnnotatedDeclaredType getReceiverType()
public List<@Mutable AnnotatedTypeMirror> getThrownTypes()
public List<AnnotatedTypeMirror.AnnotatedTypeVariable> getTypeVariables()
public AnnotatedTypeMirror.AnnotatedExecutableType getCopy(boolean copyAnnotations)
AnnotatedTypeMirror
getCopy
in class @Mutable AnnotatedTypeMirror
copyAnnotations
- whether copy should have annotationspublic @NonNull ExecutableElement getElement()
AnnotatedTypeMirror
getElement
in class @Mutable AnnotatedTypeMirror
Element
of the value of this type, if one existspublic AnnotatedTypeMirror.AnnotatedExecutableType getErased()
AnnotatedTypeMirror
getErased
in class @Mutable AnnotatedTypeMirror
public AnnotatedTypeMirror.AnnotatedExecutableType substitute(Map<? extends @Mutable AnnotatedTypeMirror,? extends @Mutable AnnotatedTypeMirror> mappings)
AnnotatedTypeMirror
substitute
in class @Mutable AnnotatedTypeMirror
public @ReadOnly String toString(boolean printInvisible)
AnnotatedTypeMirror
toString
in class @Mutable AnnotatedTypeMirror
printInvisible
- Whether to always output invisible qualifiers.