Package io.protostuff.runtime
Class ReflectAccessor
- java.lang.Object
-
- io.protostuff.runtime.Accessor
-
- io.protostuff.runtime.ReflectAccessor
-
public final class ReflectAccessor extends Accessor
Read/write from/to fields using reflection.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class io.protostuff.runtime.Accessor
Accessor.Factory
-
-
Field Summary
Fields Modifier and Type Field Description (package private) static Accessor.Factory
FACTORY
-
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.
-
-
-
Field Detail
-
FACTORY
static final Accessor.Factory FACTORY
-
-
Method Detail
-
set
public void set(java.lang.Object owner, java.lang.Object value)
Description copied from class:Accessor
Set the field value.
-
-