public static class AnnotatedTypeMirror.AnnotatedExecutableType extends AnnotatedTypeMirror
AnnotatedTypeMirror.AnnotatedArrayType, AnnotatedTypeMirror.AnnotatedDeclaredType, AnnotatedTypeMirror.AnnotatedExecutableType, AnnotatedTypeMirror.AnnotatedIntersectionType, AnnotatedTypeMirror.AnnotatedNoType, AnnotatedTypeMirror.AnnotatedNullType, AnnotatedTypeMirror.AnnotatedPrimitiveType, AnnotatedTypeMirror.AnnotatedTypeVariable, AnnotatedTypeMirror.AnnotatedUnionType, AnnotatedTypeMirror.AnnotatedWildcardType
Modifier and Type | Field and Description |
---|---|
protected java.util.List<AnnotatedTypeMirror> |
paramTypes |
protected AnnotatedTypeMirror.AnnotatedDeclaredType |
receiverType |
protected AnnotatedTypeMirror |
returnType |
protected java.util.List<AnnotatedTypeMirror> |
throwsTypes |
protected java.util.List<AnnotatedTypeMirror.AnnotatedTypeVariable> |
typeVarTypes |
actualType, annotations, atypeFactory, EQUALITY_COMPARER, HASHCODE_VISITOR
Modifier and Type | Method and Description |
---|---|
<R,P> R |
accept(AnnotatedTypeVisitor<R,P> v,
P p)
Applies a visitor to this type.
|
void |
addAnnotation(javax.lang.model.element.AnnotationMirror a)
It never makes sense to add annotations to an executable type - instead, they should be
added to the right component.
|
AnnotatedTypeMirror.AnnotatedExecutableType |
deepCopy()
Returns a deep copy of this type with annotations.
|
AnnotatedTypeMirror.AnnotatedExecutableType |
deepCopy(boolean copyAnnotations)
Returns a deep 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 |
shallowCopy()
Returns a shallow copy of this type with annotations.
|
AnnotatedTypeMirror.AnnotatedExecutableType |
shallowCopy(boolean copyAnnotations)
Returns a shallow copy of this type.
|
addAnnotation, addAnnotations, addMissingAnnotations, asUse, clearAnnotations, createType, createTypeOfObject, directSuperTypes, equals, getAnnotation, getAnnotationInHierarchy, getAnnotations, getAnnotationsField, getEffectiveAnnotation, getEffectiveAnnotationInHierarchy, getEffectiveAnnotations, getExplicitAnnotations, getKind, hasAnnotation, hasAnnotation, hasAnnotationRelaxed, hasEffectiveAnnotation, hasEffectiveAnnotation, hasEffectiveAnnotationRelaxed, hasExplicitAnnotation, hasExplicitAnnotation, hasExplicitAnnotationRelaxed, hashCode, isAnnotatedInHierarchy, isDeclaration, removeAnnotation, removeAnnotation, removeAnnotationInHierarchy, removeAnnotations, removeNonTopAnnotationInHierarchy, replaceAnnotation, replaceAnnotations, toString, toString
protected final java.util.List<AnnotatedTypeMirror> paramTypes
protected AnnotatedTypeMirror.AnnotatedDeclaredType receiverType
protected AnnotatedTypeMirror returnType
protected final java.util.List<AnnotatedTypeMirror> throwsTypes
protected final java.util.List<AnnotatedTypeMirror.AnnotatedTypeVariable> typeVarTypes
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 void addAnnotation(javax.lang.model.element.AnnotationMirror a)
addAnnotation
in class AnnotatedTypeMirror
a
- the annotation to addpublic 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 deepCopy(boolean copyAnnotations)
AnnotatedTypeMirror
Note: deepCopy provides two important properties in the returned copy:
deepCopy
in class AnnotatedTypeMirror
public AnnotatedTypeMirror.AnnotatedExecutableType deepCopy()
AnnotatedTypeMirror
Each subclass implements this method with the subclass return type. The method body must always be a call to deepCopy(true).
deepCopy
in class AnnotatedTypeMirror
AnnotatedTypeMirror.deepCopy(boolean)
public AnnotatedTypeMirror.AnnotatedExecutableType shallowCopy(boolean copyAnnotations)
AnnotatedTypeMirror
shallowCopy
in class AnnotatedTypeMirror
copyAnnotations
- whether copy should have annotations, i.e. whether field annotations
should be copied.public AnnotatedTypeMirror.AnnotatedExecutableType shallowCopy()
AnnotatedTypeMirror
Each subclass implements this method with the subclass return type. The method body must always be a call to shallowCopy(true).
shallowCopy
in class AnnotatedTypeMirror
AnnotatedTypeMirror.shallowCopy(boolean)
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