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 Class object representing the class or interface that declares the executable represented by this object.

abstract Class[]<?> getExceptionTypes()

Returns an array of Class objects that represent the types of exceptions declared to be thrown by the underlying executable represented by this object.

Type[] getGenericExceptionTypes()

Returns an array of Type objects that represent the exceptions declared to be thrown by this executable object.

Type[] getGenericParameterTypes()

Returns an array of Type objects that represent the formal parameter types, in declaration order, of the executable represented by this object.

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