All Implemented Interfaces:
AnnotatedElement, GenericDeclaration, Member
Direct Known Subclasses:
Constructor, Method

  • Field Summary

    Fields declared in interface Member

    DECLARED, PUBLIC

    static final int

    Identifies the set of declared members of a class or interface.

    static final int

    Identifies the set of all public members of a class or interface, including inherited members.

  • Method Summary

    Returns an unmodifiable set of the access flags for the executable represented by this object, possibly empty.

    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.

    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.

    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.

    Returns an AnnotatedType object that represents the use of a type to specify the return type of the method/constructor represented by this Executable.

    getAnnotation(Class<T> annotationClass)

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

    getAnnotationsByType(Class<T> annotationClass)

    Returns annotations that are associated with this element.

    Returns the Class object representing the class or interface that declares the executable represented by this object.

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

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

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

    abstract int

    Returns the Java language modifiers for the executable represented by this object.

    getName()

    Returns the name of the executable represented by this object.

    Returns an array of arrays of Annotations that represent the annotations on the formal parameters, in declaration order, of the Executable represented by this object.

    abstract int

    Returns the number of formal parameters (whether explicitly declared or implicitly declared or neither) for the executable represented by this object.

    Returns an array of Parameter objects representing all the parameters to the underlying executable represented by this object.

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

    Returns an array of TypeVariable objects that represent the type variables declared by the generic declaration represented by this GenericDeclaration object, in declaration order.

    boolean

    Returns true if this executable is a synthetic construct; returns false otherwise.

    boolean

    isVarArgs()

    Returns true if this executable was declared to take a variable number of arguments; returns false otherwise.

    Returns a string describing this Executable, including any type parameters.

    Methods declared in class AccessibleObject

    canAccess, getAnnotations, getDeclaredAnnotation, getDeclaredAnnotations, getDeclaredAnnotationsByType, isAccessible, isAnnotationPresent, setAccessible, setAccessible, trySetAccessible

    final boolean

    Test if the caller can access this reflected object.

    Returns annotations that are present on this element.

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

    Returns annotations that are directly present on this element.

    Returns this element's annotation(s) for the specified type if such annotations are either directly present or indirectly present.

    boolean

    boolean

    Returns true if an annotation for the specified type is present on this element, else false.

    void

    Set the accessible flag for this reflected object to the indicated boolean value.

    static void

    Convenience method to set the accessible flag for an array of reflected objects.

    final boolean

    Set the accessible flag for this reflected object to true if possible.

    Methods declared in class Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Creates and returns a copy of this object.

    boolean

    Indicates whether some other object is "equal to" this one.

    protected void

    Deprecated, for removal: This API element is subject to removal in a future version.

    Returns the runtime class of this Object.

    int

    Returns a hash code value for this object.

    final void

    Wakes up a single thread that is waiting on this object's monitor.

    final void

    Wakes up all threads that are waiting on this object's monitor.

    Returns a string representation of the object.

    final void

    Causes the current thread to wait until it is awakened, typically by being notified or interrupted.

    final void

    wait(long timeoutMillis)

    Causes the current thread to wait until it is awakened, typically by being notified or interrupted, or until a certain amount of real time has elapsed.

    final void

    wait(long timeoutMillis, int nanos)

    Causes the current thread to wait until it is awakened, typically by being notified or interrupted, or until a certain amount of real time has elapsed.

  • Method Details

    • getDeclaringClass

    • getName

    • getModifiers

    • accessFlags

    • getTypeParameters

    • getParameterTypes

    • getParameterCount

    • getGenericParameterTypes

    • getParameters

    • getExceptionTypes

    • getGenericExceptionTypes

    • toGenericString

    • isVarArgs

    • isSynthetic

    • getParameterAnnotations

    • getAnnotation

    • getAnnotationsByType

    • getAnnotatedReturnType

    • getAnnotatedReceiverType

    • getAnnotatedParameterTypes

    • getAnnotatedExceptionTypes