throws
clause, among other restrictions; see JLS 9.6.1 for details.
ExecutableType
| Modifier and Type | Method and Description |
|---|---|
| public TypeMirror | Returns: the executable type defined by this executable elementRedeclares javax. Returns the executable type defined by this executable element. |
| public AnnotationValue | Returns: the default value, ornull if noneReturns the default value if this executable is an annotation interface element. |
| public Element | Returns: the class or interface defining the executableRedeclares javax. Returns the class or interface defining the executable. |
| public List | Returns: the formal parameters, or an empty list if there are noneReturns the formal parameters of this executable. |
| public TypeMirror | Returns: the receiver type of this executableReturns the receiver type of this executable,
or |
| public TypeMirror | Returns: the return type of this executableReturns the return type of this executable. |
| public Name | Returns: the simple name of a constructor, method, or initializerRedeclares javax. Returns the simple name of a constructor, method, or initializer. |
| public List | Returns: the exceptions and other throwables listed in thethrows clause, or an empty list if there are noneReturns the exceptions and other throwables listed in this
method or constructor's |
| public List | Returns: the formal type parameters, or an empty list if there are noneRedeclares javax. Returns the formal type parameters of this executable in declaration order. |
| public boolean | Returns: true if this method is a default method and
returns false otherwiseReturns |
| public boolean | Returns: true if this method or constructor accepts a variable
number of arguments and returns false otherwiseReturns |
| asType | back to summary |
|---|---|
| public TypeMirror asType() Redeclares javax. Returns the executable type defined by this executable element.
| |
| getDefaultValue | back to summary |
|---|---|
| public AnnotationValue getDefaultValue() Returns the default value if this executable is an annotation
interface element. Returns
| |
| getEnclosingElement | back to summary |
|---|---|
| public Element getEnclosingElement() Redeclares javax. Returns the class or interface defining the executable. | |
| getParameters | back to summary |
|---|---|
| public List Returns the formal parameters of this executable. They are returned in declaration order.
| |
| getReceiverType | back to summary |
|---|---|
| public TypeMirror getReceiverType() Returns the receiver type of this executable,
or The receiver parameter is a syntactic device added
to the language for the purpose of hosting annotations. Even
when source code is used as the basis for creating an
executable, if a receiver parameter is not present in the
source code, an implementation may elect to return a
| |
| getReturnType | back to summary |
|---|---|
| public TypeMirror getReturnType() Returns the return type of this executable.
Returns a
| |
| getSimpleName | back to summary |
|---|---|
| public Name getSimpleName() Redeclares javax. Returns the simple name of a constructor, method, or
initializer. For a constructor, the name | |
| getThrownTypes | back to summary |
|---|---|
| public List Returns the exceptions and other throwables listed in this
method or constructor's
| |
| getTypeParameters | back to summary |
|---|---|
| public List Redeclares javax. Returns the formal type parameters of this executable in declaration order.
| |
| isDefault | back to summary |
|---|---|
| public boolean isDefault() Returns
| |
| isVarArgs | back to summary |
|---|---|
| public boolean isVarArgs() Returns
| |