public static class WrappedAnnotatedTypeMirror.WrappedAnnotatedExecutableType extends WrappedAnnotatedTypeMirror implements ExtendedExecutableType
WrappedAnnotatedTypeMirror.WrappedAnnotatedArrayType, WrappedAnnotatedTypeMirror.WrappedAnnotatedDeclaredType, WrappedAnnotatedTypeMirror.WrappedAnnotatedExecutableType, WrappedAnnotatedTypeMirror.WrappedAnnotatedIntersectionType, WrappedAnnotatedTypeMirror.WrappedAnnotatedNoType, WrappedAnnotatedTypeMirror.WrappedAnnotatedNullType, WrappedAnnotatedTypeMirror.WrappedAnnotatedPrimitiveType, WrappedAnnotatedTypeMirror.WrappedAnnotatedTypeVariable, WrappedAnnotatedTypeMirror.WrappedAnnotatedUnionType, WrappedAnnotatedTypeMirror.WrappedAnnotatedWildcardType
Modifier and Type | Method and Description |
---|---|
<R,P> R |
accept(ExtendedTypeVisitor<R,P> v,
P p)
Applies an
ExtendedTypeVisitor to this object. |
ExecutableElement |
asElement()
Returns the element corresponding to this type.
|
ExecutableType |
getOriginalType()
Returns the original
TypeMirror representation of the type, if
possible. |
List<? extends ExtendedTypeMirror> |
getParameterTypes()
Returns the types of this executable's formal parameters.
|
WrappedAnnotatedTypeMirror |
getReceiverType()
Returns the receiver type of this executable, or
ExtendedNoType
with kind NONE if the executable has no receiver type. |
WrappedAnnotatedTypeMirror |
getReturnType()
Returns the return type of this executable.
|
List<? extends WrappedAnnotatedTypeMirror> |
getThrownTypes()
Returns the exceptions and other throwables listed in this executable's
throws clause. |
List<? extends WrappedAnnotatedTypeMirror.WrappedAnnotatedTypeVariable> |
getTypeParameters()
Returns the type variables declared by the formal type parameters of
this executable.
|
AnnotatedTypeMirror.AnnotatedExecutableType |
unwrap()
Unwrap a
WrappedAnnotatedTypeMirror to obtain the original
AnnotatedTypeMirror . |
equals, getAnnotation, getAnnotationMirrors, getAnnotationsByType, getKind, hashCode, isDeclaration, toString, wrap
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
getKind, isDeclaration
getAnnotation, getAnnotationMirrors, getAnnotationsByType
public ExecutableType getOriginalType()
ExtendedTypeMirror
TypeMirror
representation of the type, if
possible. This method may return null if no TypeMirror
representation is available.getOriginalType
in interface ExtendedTypeMirror
getOriginalType
in class WrappedAnnotatedTypeMirror
public AnnotatedTypeMirror.AnnotatedExecutableType unwrap()
WrappedAnnotatedTypeMirror
WrappedAnnotatedTypeMirror
to obtain the original
AnnotatedTypeMirror
.unwrap
in class WrappedAnnotatedTypeMirror
public <R,P> R accept(ExtendedTypeVisitor<R,P> v, P p)
ExtendedTypeMirror
ExtendedTypeVisitor
to this object.accept
in interface ExtendedTypeMirror
public ExecutableElement asElement()
ExtendedExecutableType
asElement
in interface ExtendedExecutableType
public List<? extends ExtendedTypeMirror> getParameterTypes()
ExtendedExecutableType
getParameterTypes
in interface ExtendedExecutableType
public WrappedAnnotatedTypeMirror getReceiverType()
ExtendedExecutableType
ExtendedNoType
with kind NONE
if the executable has no receiver type. An
executable which is an instance method, or a constructor of an inner
class, has a receiver type derived from the declaring type. An
executable which is a static method, or a constructor of a non-inner
class, or an initializer (static or instance), has no receiver type.getReceiverType
in interface ExtendedExecutableType
public WrappedAnnotatedTypeMirror getReturnType()
ExtendedExecutableType
ExtendedNoType
with kind VOID
if this executable is a
method that does not return a value. Unlike
ExecutableType.getReturnType
, calling this method on the
type of a constructor returns the type of the object to be constructed.getReturnType
in interface ExtendedExecutableType
public List<? extends WrappedAnnotatedTypeMirror> getThrownTypes()
ExtendedExecutableType
throws
clause.getThrownTypes
in interface ExtendedExecutableType
public List<? extends WrappedAnnotatedTypeMirror.WrappedAnnotatedTypeVariable> getTypeParameters()
ExtendedExecutableType
getTypeParameters
in interface ExtendedExecutableType