Executable
public
abstract
class
Executable
extends AccessibleObject
implements
GenericDeclaration,
Member
| java.lang.Object | ||
| ↳ | java.lang.reflect.AccessibleObject | |
| ↳ | java.lang.reflect.Executable | |
A shared superclass for the common functionality of Method
and Constructor.
Summary
Inherited constants |
|---|
Public methods | |
|---|---|
<T extends Annotation>
T
|
getAnnotation(Class<T> annotationClass)
Returns this element's annotation for the specified type if such an annotation is present, else null. |
<T extends Annotation>
T[]
|
getAnnotationsByType(Class<T> annotationClass)
Returns annotations that are associated with this element. |
Annotation[]
|
getDeclaredAnnotations()
Returns annotations that are directly present on this element. |
abstract
Class<?>
|
getDeclaringClass()
Returns the |
abstract
Class[]<?>
|
getExceptionTypes()
Returns an array of |
Type[]
|
getGenericExceptionTypes()
Returns an array of |
Type[]
|
getGenericParameterTypes()
Returns an array of |
abstract
int
|
getModifiers()
Returns the Java language modifiers for the executable represented by this object. |
abstract
String
|
getName()
Returns the name of the executable represented by this object. |
abstract
Annotation[][]
|
getParameterAnnotations()
Returns an array of |