|
||||||||||
| PREV CLASS (src) NEXT CLASS (src) | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.jboss.util.FieldInstance
A FieldInstance refers to a specific reflected field on an object.
| Field Summary | |
protected java.lang.reflect.Field |
field
Field |
protected java.lang.Object |
instance
Instance |
| Constructor Summary | |
FieldInstance(java.lang.Object instance,
java.lang.String fieldName)
Construct a new field instance. |
|
| Method Summary | |
java.lang.Object |
get()
Get the value of the field instance. |
java.lang.reflect.Field |
getField()
Get the field. |
java.lang.Object |
getInstance()
Get the instance. |
void |
set(java.lang.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 java.lang.reflect.Field field
protected final java.lang.Object instance
| Constructor Detail |
public FieldInstance(java.lang.Object instance,
java.lang.String fieldName)
throws java.lang.NoSuchFieldException
instance - The instance object the given field belongs to.fieldName - The name of the field to find in the instance.
NullArgumentException (src) - Instance or fieldName is null.
java.lang.NoSuchFieldException| Method Detail |
public final java.lang.reflect.Field getField()
public final java.lang.Object getInstance()
public final java.lang.Object get()
throws java.lang.IllegalAccessException
java.lang.IllegalAccessException - Failed to get field value.
public final void set(java.lang.Object value)
throws java.lang.IllegalAccessException
value - Field value.
java.lang.IllegalAccessException - Failed to set field value.
|
||||||||||
| PREV CLASS (src) NEXT CLASS (src) | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||