Top Fields Constructors Methods
org.codehaus.groovy.reflection

public Class CachedField

extends MetaProperty
Class Inheritance
Imports
groovy.lang.GroovyRuntimeException, .MetaProperty, org.codehaus.groovy.runtime.typehandling.DefaultTypeTransformation, java.lang.reflect.Field, .Modifier

Field Summary

Modifier and TypeField and Description
private final Field
private transient boolean
Inherited from groovy.lang.MetaProperty:
namePROPERTY_SET_PREFIXtype

Constructor Summary

AccessConstructor and Description
public
CachedField(final Field field)

Method Summary

Modifier and TypeMethod and Description
public Field
public Class<T>
public int
getModifiers()

Overrides groovy.lang.MetaProperty.getModifiers.

Returns the access modifier.
public Object
getProperty(final Object object)

Implements abstract groovy.lang.MetaProperty.getProperty.

public boolean
public boolean
private void
public void
setProperty(final Object
on which to set the property
object
,
final Object
the new value of the property
newValue
)

Implements abstract groovy.lang.MetaProperty.setProperty.

Sets the property on the given object to the new value.
Inherited from groovy.lang.MetaProperty:
getGetterNamegetNamegetSetterNamegetType

Field Detail

fieldback to summary
private final Field field
madeAccessibleback to summary
private transient boolean madeAccessible

Constructor Detail

CachedFieldback to summary
public CachedField(final Field field)

Method Detail

getCachedFieldback to summary
public Field getCachedField()
getDeclaringClassback to summary
public Class<T> getDeclaringClass()
getModifiersback to summary
public int getModifiers()

Overrides groovy.lang.MetaProperty.getModifiers.

Doc from groovy.lang.MetaProperty.getModifiers.

Returns the access modifier.

Returns:int

Modifier.PUBLIC

Annotations
@Override
getPropertyback to summary
public Object getProperty(final Object object)

Implements abstract groovy.lang.MetaProperty.getProperty.

Returns:Object

Doc from groovy.lang.MetaProperty.getProperty.

the property of the given object

Annotations
@Override
isFinalback to summary
public boolean isFinal()
isStaticback to summary
public boolean isStatic()
makeAccessibleIfNecessaryback to summary
private void makeAccessibleIfNecessary()
setPropertyback to summary
public void setProperty(final Object object, final Object newValue)

Implements abstract groovy.lang.MetaProperty.setProperty.

Doc from groovy.lang.MetaProperty.setProperty.

Sets the property on the given object to the new value.

Parameters
object:Object

on which to set the property

newValue:Object

the new value of the property

Annotations
@Override