|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface FieldHandle
Allows read/write access directly to a field (bypassing accessors). Does not use reflection, even if the field is private (the normal case for Plastic classes).
Method Summary | |
---|---|
java.lang.Object |
get(java.lang.Object instance)
Gets the current value of the field. |
void |
set(java.lang.Object instance,
java.lang.Object newValue)
Updates the current value of the field. |
Method Detail |
---|
java.lang.Object get(java.lang.Object instance)
java.lang.NullPointerException
- if the instance is null
java.lang.ClassCastException
- if the instance is not the type that contains the fieldvoid set(java.lang.Object instance, java.lang.Object newValue)
java.lang.NullPointerException
- if the instance is null
java.lang.NullPointerException
- if the newValue is null and the field is a primitive type
java.lang.ClassCastException
- if the instance is not the type that contains the field
java.lang.ClassCastException
- if the newValue is not assignable to the field type (or not the matching wrapper type
for a primitive field)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |