public interface ExecutableElement extends Element, Parameterizable
ExecutableType
| Modifier and Type | Method and Description |
|---|---|
AnnotationValue |
getDefaultValue()
Returns the default value if this executable is an annotation type element.
|
List |
getParameters()
Returns the formal parameters of this executable.
|
TypeMirror |
getReceiverType()
|
TypeMirror |
getReturnType()
Returns the return type of this executable.
|
Name |
getSimpleName()
Returns the simple name of a constructor, method, or initializer.
|
List |
getThrownTypes()
Returns the exceptions and other throwables listed in this method or constructor's
throws clause in declaration order.
|
List |
getTypeParameters()
Returns the formal type parameters of this executable in declaration order.
|
boolean |
isDefault()
Returns
true if this method is a default method and returns
false otherwise.
|
boolean |
isVarArgs()
Returns
true if this method or constructor accepts a variable number of arguments and returns
false otherwise.
|
accept, asType, equals, getAnnotation, getAnnotationMirrors, getEnclosedElements, getEnclosingElement, getKind, getModifiers, hashCodegetAnnotationsByTypeList<? extends TypeParameterElement > getTypeParameters()
getTypeParameters in interface
Parameterizable
TypeMirrorgetReturnType()
NoType with kind
VOID if this executable is not a method, or is a method that does not return a value.
List<? extends VariableElement > getParameters()
TypeMirrorgetReceiverType()
NoType 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.
boolean isVarArgs()
true if this method or constructor accepts a variable number of arguments and returns
false otherwise.
true if this method or constructor accepts a variable number of arguments and
false otherwise
boolean isDefault()
true if this method is a default method and returns
false otherwise.
true if this method is a default method and
false otherwise
List<? extends TypeMirror > getThrownTypes()
throws clause in declaration order.
throws clause, or an empty list if there are none
AnnotationValuegetDefaultValue()
null if this method is not an annotation type element, or if it is an annotation type element with no default value.
null if none
NamegetSimpleName()
"<init>" is returned, for a static initializer, the name
"<clinit>" is returned, and for an anonymous class or instance initializer, an empty name is returned.
getSimpleName in interface
Element
PackageElement.getSimpleName() ,
getSimpleName(),
TypeElement.getSimpleName() ,
VariableElement.getSimpleName()