Interface TinyProtocolReflection.FieldAccessor<T>

  • Type Parameters:
    T - - field type.
    Enclosing class:
    TinyProtocolReflection

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

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

      • get

        T get​(java.lang.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​(java.lang.Object target,
                 java.lang.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​(java.lang.Object target)
        Determine if the given object has this field.
        Parameters:
        target - - the object to test.
        Returns:
        TRUE if it does, FALSE otherwise.