Class FieldAccessor<T>

java.lang.Object
org.jvnet.basicjaxb.reflection.util.FieldAccessor<T>
Type Parameters:
T - The declared type for the field represented by this Field object.
All Implemented Interfaces:
Accessor<T>

public class FieldAccessor<T> extends Object implements Accessor<T>
FieldAccessor provides methods to get and set fields by reflection. A Field provides information about, and dynamic access to, a single field of a class or an interface. The reflected field may be a class (static) field or an instance field.
  • Constructor Details

    • FieldAccessor

      public FieldAccessor(Class<?> owner, String fieldName, Class<T> fieldType)
      Construct with the owning class, field name and field type.
      Parameters:
      owner - The owning class.
      fieldName - The field name.
      fieldType - The field type.
  • Method Details