|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.jboss.util.FieldInstance
A FieldInstance refers to a specific reflected field on an object.
Field Summary | |
protected Field |
field
Field |
protected Object |
instance
Instance |
Constructor Summary | |
FieldInstance(Object instance,
String fieldName)
Construct a new field instance. |
Method Summary | |
Object |
get()
Get the value of the field instance. |
Field |
getField()
Get the field. |
Object |
getInstance()
Get the instance. |
void |
set(Object value)
Set the value of the field instance |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
protected final Field field
protected final Object instance
Constructor Detail |
public FieldInstance(Object instance, String fieldName) throws NoSuchFieldException
instance
- The instance object the given field belongs to.fieldName
- The name of the field to find in the instance.
NullArgumentException
- Instance or fieldName is null.
NoSuchFieldException
Method Detail |
public final Field getField()
public final Object getInstance()
public final Object get() throws IllegalAccessException
IllegalAccessException
- Failed to get field value.public final void set(Object value) throws IllegalAccessException
value
- Field value.
IllegalAccessException
- Failed to set field value.
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |