| javax.lang.model.element.ExecutableElement
ExecutableElement | public interface ExecutableElement extends Element(Code) | | Represents a method, constructor, or initializer (static or
instance) of a class or interface, including annotation type
elements.
author: Joseph D. Darcy author: Scott Seligman author: Peter von der Ahé version: 1.10 07/05/05 See Also: ExecutableType since: 1.6 |
getDefaultValue | AnnotationValue getDefaultValue()(Code) | | Returns the default value if this executable is an annotation
type element. Returns
null if this method is not an
annotation type element, or if it is an annotation type element
with no default value.
the default value, or null if none |
getParameters | List<? extends VariableElement> getParameters()(Code) | | Returns the formal parameters of this executable.
They are returned in declaration order.
the formal parameters,or an empty list if there are none |
getReturnType | TypeMirror getReturnType()(Code) | | Returns the return type of this executable.
Returns a
NoType with kind
TypeKind.VOID VOID if this executable is not a method, or is a method that does not
return a value.
the return type of this executable |
getThrownTypes | List<? extends TypeMirror> getThrownTypes()(Code) | | Returns the exceptions and other throwables listed in this
method or constructor's
throws clause in declaration
order.
the exceptions and other throwables listed in the throws clause, or an empty list if there are none |
getTypeParameters | List<? extends TypeParameterElement> getTypeParameters()(Code) | | Returns the formal type parameters of this executable
in declaration order.
the formal type parameters, or an empty listif there are none |
isVarArgs | boolean isVarArgs()(Code) | | Returns
true if this method or constructor accepts a variable
number of arguments and returns
false otherwise.
true if this method or constructor accepts a variablenumber of arguments and false otherwise |
|
|