Executable (Java Platform SE 8 ) (original) (raw)
Modifier and Type
Method
Description
[AnnotatedType](../../../java/lang/reflect/AnnotatedType.html "interface in java.lang.reflect")[]
[getAnnotatedExceptionTypes](../../../java/lang/reflect/Executable.html#getAnnotatedExceptionTypes--)()
Returns an array of AnnotatedType
objects that represent the use of types to specify the declared exceptions of the method/constructor represented by this Executable.
[AnnotatedType](../../../java/lang/reflect/AnnotatedType.html "interface in java.lang.reflect")[]
[getAnnotatedParameterTypes](../../../java/lang/reflect/Executable.html#getAnnotatedParameterTypes--)()
Returns an array of AnnotatedType
objects that represent the use of types to specify formal parameter types of the method/constructor represented by this Executable.
[AnnotatedType](../../../java/lang/reflect/AnnotatedType.html "interface in java.lang.reflect")
[getAnnotatedReceiverType](../../../java/lang/reflect/Executable.html#getAnnotatedReceiverType--)()
Returns an AnnotatedType
object that represents the use of a type to specify the receiver type of the method/constructor represented by this Executable object.
abstract [AnnotatedType](../../../java/lang/reflect/AnnotatedType.html "interface in java.lang.reflect")
[getAnnotatedReturnType](../../../java/lang/reflect/Executable.html#getAnnotatedReturnType--)()
Returns an AnnotatedType
object that represents the use of a type to specify the return type of the method/constructor represented by this Executable.
<T extends [Annotation](../../../java/lang/annotation/Annotation.html "interface in java.lang.annotation")> T
[getAnnotation](../../../java/lang/reflect/Executable.html#getAnnotation-java.lang.Class-)([Class](../../../java/lang/Class.html "class in java.lang")<T> annotationClass)
Returns this element's annotation for the specified type if such an annotation is present, else null.
<T extends [Annotation](../../../java/lang/annotation/Annotation.html "interface in java.lang.annotation")> T[]
[getAnnotationsByType](../../../java/lang/reflect/Executable.html#getAnnotationsByType-java.lang.Class-)([Class](../../../java/lang/Class.html "class in java.lang")<T> annotationClass)
Returns annotations that are associated with this element.
[Annotation](../../../java/lang/annotation/Annotation.html "interface in java.lang.annotation")[]
[getDeclaredAnnotations](../../../java/lang/reflect/Executable.html#getDeclaredAnnotations--)()
Returns annotations that are directly present on this element.
abstract [Class](../../../java/lang/Class.html "class in java.lang")<?>
[getDeclaringClass](../../../java/lang/reflect/Executable.html#getDeclaringClass--)()
Returns the Class
object representing the class or interface that declares the executable represented by this object.
abstract [Class](../../../java/lang/Class.html "class in java.lang")<?>[]
[getExceptionTypes](../../../java/lang/reflect/Executable.html#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](../../../java/lang/reflect/Type.html "interface in java.lang.reflect")[]
[getGenericExceptionTypes](../../../java/lang/reflect/Executable.html#getGenericExceptionTypes--)()
Returns an array of Type
objects that represent the exceptions declared to be thrown by this executable object.
[Type](../../../java/lang/reflect/Type.html "interface in java.lang.reflect")[]
[getGenericParameterTypes](../../../java/lang/reflect/Executable.html#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](../../../java/lang/reflect/Executable.html#getModifiers--)()
Returns the Java language modifiers for the executable represented by this object.
abstract [String](../../../java/lang/String.html "class in java.lang")
[getName](../../../java/lang/reflect/Executable.html#getName--)()
Returns the name of the executable represented by this object.
abstract [Annotation](../../../java/lang/annotation/Annotation.html "interface in java.lang.annotation")[][]
[getParameterAnnotations](../../../java/lang/reflect/Executable.html#getParameterAnnotations--)()
Returns an array of arrays of Annotation
s that represent the annotations on the formal parameters, in declaration order, of the Executable
represented by this object.
int
[getParameterCount](../../../java/lang/reflect/Executable.html#getParameterCount--)()
Returns the number of formal parameters (whether explicitly declared or implicitly declared or neither) for the executable represented by this object.
[Parameter](../../../java/lang/reflect/Parameter.html "class in java.lang.reflect")[]
[getParameters](../../../java/lang/reflect/Executable.html#getParameters--)()
Returns an array of Parameter
objects that represent all the parameters to the underlying executable represented by this object.
abstract [Class](../../../java/lang/Class.html "class in java.lang")<?>[]
[getParameterTypes](../../../java/lang/reflect/Executable.html#getParameterTypes--)()
Returns an array of Class
objects that represent the formal parameter types, in declaration order, of the executable represented by this object.
abstract [TypeVariable](../../../java/lang/reflect/TypeVariable.html "interface in java.lang.reflect")<?>[]
[getTypeParameters](../../../java/lang/reflect/Executable.html#getTypeParameters--)()
Returns an array of TypeVariable
objects that represent the type variables declared by the generic declaration represented by thisGenericDeclaration
object, in declaration order.
boolean
[isSynthetic](../../../java/lang/reflect/Executable.html#isSynthetic--)()
Returns true
if this executable is a synthetic construct; returns false
otherwise.
boolean
[isVarArgs](../../../java/lang/reflect/Executable.html#isVarArgs--)()
Returns true
if this executable was declared to take a variable number of arguments; returns false
otherwise.
abstract [String](../../../java/lang/String.html "class in java.lang")
[toGenericString](../../../java/lang/reflect/Executable.html#toGenericString--)()
Returns a string describing this Executable
, including any type parameters.