CachedField (groovy 2.4.11 API)
Date: 2017-04-27

Package: org.codehaus.groovy.reflection

## [Java] Class CachedField

- org.codehaus.groovy.reflection.CachedField

- - ### Field Summary

    Fields
    Modifiers | Name | Description
    --- | --- | ---
    `Field` | `field` |

  - Inherited fields
    Fields inherited from class | Fields
    --- | ---
    `class MetaProperty` | `PROPERTY_SET_PREFIX, name, type`

  - ### Constructor Summary

    Constructors
    Constructor and description
    `CachedField (Field field)`

  - ### Methods Summary

    Methods
    Type Params | Return Type | Name and description
    --- | --- | ---
    `` | `int` | `getModifiers()`
    `` | `Object` | `getProperty(Object object)` @return the property of the given object
    `` | `boolean` | `isFinal()`
    `` | `boolean` | `isStatic()`
    `` | `void` | `setProperty(Object object, Object newValue)` Sets the property on the given object to the new value

  - ### Inherited Methods Summary

    Inherited Methods
    Methods inherited from class | Name
    --- | ---
    `class MetaProperty` | `getGetterName, getModifiers, getName, getProperty, getSetterName, getType, setProperty`
    `class Object` | `wait, wait, wait, equals, toString, hashCode, getClass, notify, notifyAll`

- - ### Field Detail

    - #### public final Field field

  - ### Constructor Detail

    - #### public CachedField(Field field)

  - ### Method Detail

    - #### public int getModifiers()

    - #### public Object getProperty(Object object)

      throws:
        RuntimeException if the property could not be evaluated
      Returns:
        the property of the given object

    - #### public boolean isFinal()

    - #### public boolean isStatic()

    - #### public void setProperty(Object object, Object newValue)

      Sets the property on the given object to the new value

      throws:
        RuntimeException if the property could not be set
      Parameters:
        `object` - on which to set the property
        `newValue` - the new value of the property