public static class AnnotatedTypeMirror.AnnotatedExecutableType extends AnnotatedTypeMirror
AnnotatedTypeMirror.AnnotatedArrayType, AnnotatedTypeMirror.AnnotatedDeclaredType, AnnotatedTypeMirror.AnnotatedExecutableType, AnnotatedTypeMirror.AnnotatedIntersectionType, AnnotatedTypeMirror.AnnotatedNoType, AnnotatedTypeMirror.AnnotatedNullType, AnnotatedTypeMirror.AnnotatedPrimitiveType, AnnotatedTypeMirror.AnnotatedReferenceType, AnnotatedTypeMirror.AnnotatedTypeVariable, AnnotatedTypeMirror.AnnotatedUnionType, AnnotatedTypeMirror.AnnotatedWildcardType
annotations, atypeFactory
Modifier and Type | Method and Description |
---|---|
<R,P> R |
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 javax.lang.model.element.ExecutableElement |
getElement() |
AnnotatedTypeMirror.AnnotatedExecutableType |
getErased()
Returns the erasure type of the this type, according to JLS
specifications.
|
java.util.List<AnnotatedTypeMirror> |
getParameterTypes() |
@Nullable AnnotatedTypeMirror.AnnotatedDeclaredType |
getReceiverType() |
AnnotatedTypeMirror |
getReturnType()
The return type of a method or constructor.
|
java.util.List<AnnotatedTypeMirror> |
getThrownTypes() |
java.util.List<AnnotatedTypeMirror.AnnotatedTypeVariable> |
getTypeVariables() |
javax.lang.model.type.ExecutableType |
getUnderlyingType()
Returns the underlying unannotated Java type, which this wraps
|
boolean |
isVarArgs() |
void |
setElement(@NonNull javax.lang.model.element.ExecutableElement elem) |
AnnotatedTypeMirror.AnnotatedExecutableType |
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.
|
addAnnotation, addAnnotation, addAnnotations, addMissingAnnotations, clearAnnotations, createType, createTypeOfObject, directSuperTypes, 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
public boolean isVarArgs()
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 javax.lang.model.type.ExecutableType getUnderlyingType()
AnnotatedTypeMirror
getUnderlyingType
in class AnnotatedTypeMirror
public java.util.List<AnnotatedTypeMirror> getParameterTypes()
public AnnotatedTypeMirror getReturnType()
public @Nullable AnnotatedTypeMirror.AnnotatedDeclaredType getReceiverType()
public java.util.List<AnnotatedTypeMirror> getThrownTypes()
public java.util.List<AnnotatedTypeMirror.AnnotatedTypeVariable> getTypeVariables()
public AnnotatedTypeMirror.AnnotatedExecutableType getCopy(boolean copyAnnotations)
AnnotatedTypeMirror
getCopy
in class AnnotatedTypeMirror
copyAnnotations
- whether copy should have annotations, i.e. whether
field annotations
should be copied.public @NonNull javax.lang.model.element.ExecutableElement getElement()
public void setElement(@NonNull javax.lang.model.element.ExecutableElement elem)
public AnnotatedTypeMirror.AnnotatedExecutableType getErased()
AnnotatedTypeMirror
getErased
in class AnnotatedTypeMirror
public AnnotatedTypeMirror.AnnotatedExecutableType substitute(java.util.Map<? extends AnnotatedTypeMirror,? extends AnnotatedTypeMirror> mappings)
AnnotatedTypeMirror
substitute
in class AnnotatedTypeMirror
@SideEffectFree public java.lang.String toString(boolean printInvisible)
AnnotatedTypeMirror
toString
in class AnnotatedTypeMirror
printInvisible
- Whether to always output invisible qualifiers.