public interface javax.lang.model.element
ExecutableElement


Hide details Login
Java SE 6
  
Implements: Element

Represents a method, constructor, or initializer (static or instance) of a class or interface, including annotation type elements.
version1.4 06/07/11
since1.6
See also javax.lang.model.type.ExecutableType

Properties
public AnnotationValue getDefaultValue()
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.
returnthe default value, or null if none
public List getParameters()
Returns the formal parameters of this executable. They are returned in declaration order.
returnthe formal parameters, or an empty list if there are none
public TypeMirror getReturnType()
Returns the return type of this executable. Returns a NoType with kind VOID if this executable is not a method, or is a method that does not return a value.
returnthe return type of this executable
public List getThrownTypes()
Returns the exceptions and other throwables listed in this method or constructor's throws clause in declaration order.
returnthe exceptions and other throwables listed in the throws clause, or an empty list if there are none
public List getTypeParameters()
Returns the formal type parameters of this executable in declaration order.
returnthe formal type parameters, or an empty list if there are none
public boolean isVarArgs()
Returns true if this method or constructor accepts a variable number of arguments and returns false otherwise.
returntrue if this method or constructor accepts a variable number of arguments and false otherwise