All Implemented Interfaces:
AnnotatedElement, Member

  • Field Summary

  • 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.

  • 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