Class ReflectAccessor


  • public final class ReflectAccessor
    extends Accessor
    Read/write from/to fields using reflection.
    • Field Summary

      Fields 
      Modifier and Type Field Description
      (package private) static Accessor.Factory FACTORY  
      • Fields inherited from class io.protostuff.runtime.Accessor

        f
    • Constructor Summary

      Constructors 
      Constructor Description
      ReflectAccessor​(java.lang.reflect.Field f)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      <T> T get​(java.lang.Object owner)
      Get the field value.
      void set​(java.lang.Object owner, java.lang.Object value)
      Set the field value.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • ReflectAccessor

        public ReflectAccessor​(java.lang.reflect.Field f)
    • Method Detail

      • set

        public void set​(java.lang.Object owner,
                        java.lang.Object value)
        Description copied from class: Accessor
        Set the field value.
        Specified by:
        set in class Accessor
      • get

        public <T> T get​(java.lang.Object owner)
        Description copied from class: Accessor
        Get the field value.
        Specified by:
        get in class Accessor