|
Java™ Platform Standard Ed. 6 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface ExecutableElement
Represents a method, constructor, or initializer (static or instance) of a class or interface, including annotation type elements.
ExecutableType| Method Summary | |
|---|---|
AnnotationValue |
getDefaultValue()
Returns the default value if this executable is an annotation type element. |
List<? extends VariableElement> |
getParameters()
Returns the formal parameters of this executable. |
TypeMirror |
getReturnType()
Returns the return type of this executable. |
List<? extends TypeMirror> |
getThrownTypes()
Returns the exceptions and other throwables listed in this method or constructor's throws clause in declaration
order. |
List<? extends TypeParameterElement> |
getTypeParameters()
Returns the formal type parameters of this executable in declaration order. |
boolean |
isVarArgs()
Returns true if this method or constructor accepts a variable
number of arguments and returns false otherwise. |
| Methods inherited from interface javax.lang.model.element.Element |
|---|
accept, asType, equals, getAnnotation, getAnnotationMirrors, getEnclosedElements, getEnclosingElement, getKind, getModifiers, getSimpleName, hashCode |
| Method Detail |
|---|
List<? extends TypeParameterElement> getTypeParameters()
TypeMirror getReturnType()
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()
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 otherwiseList<? extends TypeMirror> getThrownTypes()
throws clause in declaration
order.
throws clause, or an empty list if there are noneAnnotationValue getDefaultValue()
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
|
Java™ Platform Standard Ed. 6 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
Copyright 2008 Sun Microsystems, Inc. All rights reserved. Use is subject to license terms. Also see the documentation redistribution policy.