Interface Reflection.FieldAccessor<T>

Type Parameters:
T - - field type.
Enclosing class:
Reflection

public static interface Reflection.FieldAccessor<T>
An interface for retrieving the field content.
  • Method Summary

    Modifier and Type
    Method
    Description
    get(Object target)
    Retrieve the content of a field.
    boolean
    hasField(Object target)
    Determine if the given object has this field.
    void
    set(Object target, Object value)
    Set the content of a field.
  • Method Details

    • get

      T get(Object target)
      Retrieve the content of a field.
      Parameters:
      target - - the target object, or NULL for a static field.
      Returns:
      The value of the field.
    • set

      void set(Object target, Object value)
      Set the content of a field.
      Parameters:
      target - - the target object, or NULL for a static field.
      value - - the new value of the field.
    • hasField

      boolean hasField(Object target)
      Determine if the given object has this field.
      Parameters:
      target - - the object to test.
      Returns:
      TRUE if it does, FALSE otherwise.