Interface FieldAccessModifier<E>
- All Superinterfaces:
AutoCloseable
- All Known Implementing Classes:
FieldAccessibleMaker
Provides a way to open member variables (fields) to changes.
-
Method Summary
Modifier and TypeMethodDescriptiongetValueOfField(E objectOfFieldToRead) static <T> FieldAccessModifier<T>prepareForField(Field field, T sourceObject) voidwriteValueOfField(E objectOfFieldToWriteTo, Object valueToWrite, boolean throwExceptionIfFinal) Methods inherited from interface java.lang.AutoCloseable
close
-
Method Details
-
prepareForField
-
getValueOfField
- Throws:
IllegalAccessException
-
writeValueOfField
void writeValueOfField(E objectOfFieldToWriteTo, Object valueToWrite, boolean throwExceptionIfFinal) throws IllegalAccessException - Throws:
IllegalAccessException
-