java.io.Serializable objects
with readObject() methods, even in the presence of final fields.
| Modifier and Type | Field and Description |
|---|---|
| private final Class | |
| private final long | |
| private final Class | |
| pack-priv static final Unsafe |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public static FieldSetter | |
| private static IllegalArgumentException | |
| private static IllegalArgumentException | |
| public void | |
| public void | setBoolean(Object
the instance to set instance, boolean the new value value)Set the value of the field to the given value. |
| public void | |
| public void | |
| public void | |
| public void | |
| public void | |
| public void | |
| public void |
| clazz | back to summary |
|---|---|
| private final Class<?> clazz | |
| fieldOffset | back to summary |
|---|---|
| private final long fieldOffset | |
| fieldType | back to summary |
|---|---|
| private final Class<?> fieldType | |
| unsafe | back to summary |
|---|---|
| pack-priv static final Unsafe unsafe | |
| FieldSetter | back to summary |
|---|---|
| private FieldSetter(final Field field) | |
| get | back to summary |
|---|---|
| public static FieldSetter get(final Class<?> clazz, final String name) throws SecurityException, IllegalArgumentException Get an instance for the current class.
| |
| incorrectType | back to summary |
|---|---|
| private static IllegalArgumentException incorrectType() | |
| incorrectValueType | back to summary |
|---|---|
| private static IllegalArgumentException incorrectValueType() | |
| set | back to summary |
|---|---|
| public void set(Object instance, Object value) throws IllegalArgumentException Set the value of the field to the given object.
| |
| setBoolean | back to summary |
|---|---|
| public void setBoolean(Object instance, boolean value) throws IllegalArgumentException Set the value of the field to the given value.
| |
| setByte | back to summary |
|---|---|
| public void setByte(Object instance, byte value) throws IllegalArgumentException Set the value of the field to the given value.
| |
| setChar | back to summary |
|---|---|
| public void setChar(Object instance, char value) throws IllegalArgumentException Set the value of the field to the given value.
| |
| setDouble | back to summary |
|---|---|
| public void setDouble(Object instance, double value) throws IllegalArgumentException Set the value of the field to the given value.
| |
| setFloat | back to summary |
|---|---|
| public void setFloat(Object instance, float value) throws IllegalArgumentException Set the value of the field to the given value.
| |
| setInt | back to summary |
|---|---|
| public void setInt(Object instance, int value) throws IllegalArgumentException Set the value of the field to the given value.
| |
| setLong | back to summary |
|---|---|
| public void setLong(Object instance, long value) throws IllegalArgumentException Set the value of the field to the given value.
| |
| setShort | back to summary |
|---|---|
| public void setShort(Object instance, short value) throws IllegalArgumentException Set the value of the field to the given value.
| |