org.codehaus.groovy.reflection
Class CachedField
java.lang.Object
groovy.lang.MetaProperty
org.codehaus.groovy.reflection.CachedField
class CachedField
extends MetaProperty
Field Summary |
Field |
field
|
Methods inherited from class Object
|
wait, wait, wait, hashCode, getClass, equals, toString, notify, notifyAll |
field
final Field field
-
CachedField
public CachedField(Field field)
-
getModifiers
public int getModifiers()
-
getProperty
public Object getProperty(Object object)
-
- return:
- the property of the given object
- throws:
- Exception if the property could not be evaluated
isStatic
public boolean isStatic()
-
setProperty
public void setProperty(Object object, Object newValue)
- Sets the property on the given object to the new value
- param:
- object on which to set the property
- param:
- newValue the new value of the property
- throws:
- RuntimeException if the property could not be set
Copyright © 2003-2009 The Codehaus. All rights reserved.