org.apache.tapestry5.internal.plastic

## Class FieldHandleImpl

- java.lang.Object
- - org.apache.tapestry5.internal.plastic.FieldHandleImpl

- All Implemented Interfaces:
    FieldHandle

      public class FieldHandleImpl
      extends Object
      implements FieldHandle

- - ### Field Summary

    Fields
    Modifier and Type | Field and Description
    --- | ---
    `protected PlasticClassHandleShim` | `shim`

  - ### Constructor Summary

    Constructors
    Constructor and Description
    `FieldHandleImpl(String className, String fieldName, int fieldIndex)`

  - ### Method Summary

    All Methods Instance Methods Concrete Methods
    Modifier and Type | Method and Description
    --- | ---
    `Object` | `get(Object instance)` Gets the current value of the field.
    `void` | `set(Object instance, Object newValue)` Updates the current value of the field.
    `String` | `toString()`

    - ### Methods inherited from class java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait`

- - ### Field Detail

    - #### shim

          protected volatile PlasticClassHandleShim shim

  - ### Constructor Detail

    - #### FieldHandleImpl

          public FieldHandleImpl(String className,
                                 String fieldName,
                                 int fieldIndex)

  - ### Method Detail

    - #### toString

          public String toString()

      Overrides:
        `toString` in class `Object`

    - #### get

          public Object get(Object instance)

      Description copied from interface: `FieldHandle`
      Gets the current value of the field. If the field is a primitive value, then the primitive will be wrapped.
      Specified by:
        `get` in interface `FieldHandle`

    - #### set

          public void set(Object instance,
                          Object newValue)

      Description copied from interface: `FieldHandle`
      Updates the current value of the field. If the field is a primitive value, then the newValue will be unwrapped automatically.
      Specified by:
        `set` in interface `FieldHandle`

5.6.1 - Copyright © 2003-2020 The Apache Software Foundation.