set Field
Override a field of a class. Please note that this does not cache the lookup result, so if you need to call this many times you should do it manually and cache the Field to improve performance drastically
Parameters
Instance of the class where the field is located.
Name of the field.
Value to store.
Throws
If the field doesn't exist.
If the field is inaccessible. Shouldn't happen.
Override a field of a class. Please note that this does not cache the lookup result, so if you need to call this many times you should do it manually and cache the Field to improve performance drastically
Parameters
Class where the field is located.
Instance of the clazz
or null to set static field.
Name of the field.
Value to store.
Throws
If the field doesn't exist.
If the field is inaccessible. Shouldn't happen.