All Implemented Interfaces:
AnnotatedElement, Member

  • 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 this field, possibly empty.

    boolean

    Compares this Field against the specified object.

    Returns the value of the field represented by this Field, on the specified object.

    Returns an AnnotatedType object that represents the use of a type to specify the declared type of the field represented by this Field.

    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.

    boolean

    Gets the value of a static or instance boolean field.

    byte

    Gets the value of a static or instance byte field.

    char

    Gets the value of a static or instance field of type char or of another primitive type convertible to type char via a widening conversion.

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

    double

    Gets the value of a static or instance field of type double or of another primitive type convertible to type double via a widening conversion.

    float

    Gets the value of a static or instance field of type float or of another primitive type convertible to type float via a widening conversion.

    Returns a Type object that represents the declared type for the field represented by this Field object.

    int

    Gets the value of a static or instance field of type int or of another primitive type convertible to type int via a widening conversion.

    long

    Gets the value of a static or instance field of type long or of another primitive type convertible to type long via a widening conversion.

    int

    Returns the Java language modifiers for the field represented by this Field object, as an integer.

    getName()

    Returns the name of the field represented by this Field object.

    short

    Gets the value of a static or instance field of type short or of another primitive type convertible to type short via a widening conversion.

    getType()

    Returns a Class object that identifies the declared type for the field represented by this Field object.

    int

    hashCode()

    Returns a hashcode for this Field.

    boolean

    Returns true if this field represents an element of an enumerated class; returns false otherwise.

    boolean

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

    void

    Sets the field represented by this Field object on the specified object argument to the specified new value.

    void

    setAccessible(boolean flag)

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

    void

    Sets the value of a field as a boolean on the specified object.

    void

    Sets the value of a field as a byte on the specified object.

    void

    Sets the value of a field as a char on the specified object.

    void

    Sets the value of a field as a double on the specified object.

    void

    Sets the value of a field as a float on the specified object.

    void

    Sets the value of a field as an int on the specified object.

    void

    Sets the value of a field as a long on the specified object.

    void

    Sets the value of a field as a short on the specified object.

    Returns a string describing this Field, including its generic type.

    toString()

    Returns a string describing this Field.

    Methods declared in class AccessibleObject

    canAccess, getAnnotations, getDeclaredAnnotation, getDeclaredAnnotations, getDeclaredAnnotationsByType, isAccessible, isAnnotationPresent, 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.

    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, finalize, getClass, notify, notifyAll, wait, wait, wait

    Creates and returns a copy of this object.

    protected void

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

    Returns the runtime class of 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.

    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

    • setAccessible

    • getDeclaringClass

    • getName

    • getModifiers

    • accessFlags

    • isEnumConstant

    • isSynthetic

    • getType

    • getGenericType

    • equals

    • hashCode

    • toString

    • toGenericString

    • get

    • getBoolean

    • getByte

    • getChar

    • getShort

    • getInt

    • getLong

    • getFloat

    • getDouble

    • set

    • setBoolean

    • setByte

    • setChar

    • setShort

    • setInt

    • setLong

    • setFloat

    • setDouble

    • getAnnotation

    • getAnnotationsByType

    • getAnnotatedType