Executable - JRE Emulation | JRE Emulation
public abstract class

Executable

extends AccessibleObject
implements GenericDeclaration Member
java.lang.Object
   ↳ java.lang.reflect.AccessibleObject
     ↳ java.lang.reflect.Executable
Known Direct Subclasses

Class Overview

Stub implementation of Executable. The actual implementation is in Method.h and Method.m, so the declared methods in this class should match the actual methods implemented in order to catch unsupported API references.

See Also

Summary

[Expand]
Inherited Constants
From interface java.lang.reflect.Member
Public Constructors
Executable()
Public Methods
<T extends Annotation> T getAnnotation(Class<T> cls)
Returns this element's annotation for the specified type if such an annotation is present, else null.
<T extends Annotation> T[] getAnnotationsByType(Class<T> cls)
Annotation[] getDeclaredAnnotations()
Returns annotations that are directly present on this element.
abstract Class<?> getDeclaringClass()
Returns the class that declares this member.
abstract Class[]<?> getExceptionTypes()
Type[] getGenericExceptionTypes()
Type[] getGenericParameterTypes()
abstract int getModifiers()
Returns the modifiers for this member.
abstract String getName()
Returns the name of this member.
abstract Annotation[][] getParameterAnnotations()
int getParameterCount()
abstract Class[]<?> getParameterTypes()
Parameter[] getParameters()
abstract TypeVariable[]<?> getTypeParameters()
Returns the declared type parameters in declaration order.
boolean isSynthetic()
Indicates whether or not this member is synthetic (artificially introduced by the compiler).
boolean isVarArgs()
abstract String toGenericString()
Inherited Methods
[Expand]
From class java.lang.reflect.AccessibleObject
From class java.lang.Object
From interface java.lang.reflect.AnnotatedElement
From interface java.lang.reflect.GenericDeclaration
From interface java.lang.reflect.Member

Public Constructors

public Executable ()

Public Methods

public T getAnnotation (Class<T> cls)

Returns this element's annotation for the specified type if such an annotation is present, else null.

Parameters
cls the Class object corresponding to the annotation type
Returns
  • this element's annotation for the specified annotation type if present on this element, else null

public T[] getAnnotationsByType (Class<T> cls)

public Annotation[] getDeclaredAnnotations ()

Returns annotations that are directly present on this element. This method ignores inherited annotations. If there are no annotations directly present on this element, the return value is an array of length 0. The caller of this method is free to modify the returned array; it will have no effect on the arrays returned to other callers.

Returns
  • annotations directly present on this element

public abstract Class<?> getDeclaringClass ()

Returns the class that declares this member.

Returns
  • the declaring class

public abstract Class[]<?> getExceptionTypes ()

public Type[] getGenericExceptionTypes ()

public Type[] getGenericParameterTypes ()

public abstract int getModifiers ()

Returns the modifiers for this member. The Modifier class should be used to decode the result.

Returns
  • the modifiers for this member

public abstract String getName ()

Returns the name of this member.

Returns
  • the name of this member

public abstract Annotation[][] getParameterAnnotations ()

public int getParameterCount ()

public abstract Class[]<?> getParameterTypes ()

public Parameter[] getParameters ()

public abstract TypeVariable[]<?> getTypeParameters ()

Returns the declared type parameters in declaration order. If there are no type parameters, this method returns a zero length array.

Returns
  • the declared type parameters in declaration order

public boolean isSynthetic ()

Indicates whether or not this member is synthetic (artificially introduced by the compiler).

Returns
  • true if this member is synthetic, false otherwise

public boolean isVarArgs ()

public abstract String toGenericString ()