ExecutableElement (Java Platform SE 6)
function windowTitle()
{
if (location.href.indexOf('is-external=true') == -1) {
parent.document.title="ExecutableElement (Java Platform SE 6)";
}
}
Overview
Package
Class
Use
Tree
Deprecated
Index
Help
Java™ PlatformStandard Ed. 6
PREV CLASS
NEXT CLASS
FRAMES
NO FRAMES
All Classes
SUMMARY: NESTED | FIELD | CONSTR | METHOD
DETAIL: FIELD | CONSTR | METHOD
javax.lang.model.element
Interface ExecutableElement
All Superinterfaces: Element
public interface ExecutableElementextends Element
Represents a method, constructor, or initializer (static or
instance) of a class or interface, including annotation type
elements.
Since:
1.6
See Also: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
getTypeParameters
List<? extends TypeParameterElement> getTypeParameters()
Returns the formal type parameters of this executable
in declaration order.
Returns:the formal type parameters, or an empty list
if there are none
getReturnType
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.
Returns:the return type of this executable
getParameters
List<? extends VariableElement> getParameters()
Returns the formal parameters of this executable.
They are returned in declaration order.
Returns:the formal parameters,
or an empty list if there are none
isVarArgs
boolean isVarArgs()
Returns true if this method or constructor accepts a variable
number of arguments and returns false otherwise.
Returns:true if this method or constructor accepts a variable
number of arguments and false otherwise
getThrownTypes
List<? extends TypeMirror> getThrownTypes()
Returns the exceptions and other throwables listed in this
method or constructor's throws clause in declaration
order.
Returns:the exceptions and other throwables listed in the
throws clause, or an empty list if there are none
getDefaultValue
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.
Returns:the default value, or null if none
Overview
Package
Class
Use
Tree
Deprecated
Index
Help
Java™ PlatformStandard Ed. 6
PREV CLASS
NEXT CLASS
FRAMES
NO FRAMES
All Classes
SUMMARY: NESTED | FIELD | CONSTR | METHOD
DETAIL: FIELD | CONSTR | METHOD
Submit a bug or featureFor further API reference and developer documentation, see Java SE Developer Documentation. That documentation contains more detailed, developer-targeted descriptions, with conceptual overviews, definitions of terms, workarounds, and working code examples. Copyright 2009 Sun Microsystems, Inc. All rights reserved. Use is subject to license terms. Also see the documentation redistribution policy.
Wyszukiwarka
Podobne podstrony:
function pdf execute imageExecutorlanguage operators executionAlgis Budrys ExecutionerChurch Margie 1NS Executive Decision id 2034798execute test tmz967353The Modern Dispatch 056 Executive Solutionsexecuting test suite?13B74ExecutableTypefunction odbc executezend printing executionfunction is executableDon Pendleton [The Executioner 368] Crisis Nationexecution blunders ebookwięcej podobnych podstron