| Modifier and Type | Field and Description |
|---|---|
| private final long | |
| private static final IdentityHashMap | |
| private final SerializableField[] | |
| private final Map | |
| private final boolean | |
| private static final Comparator | |
| public static final SerializableField[] | NOFIELDS
An empty array of fields. |
| private final IdentityHashMap | |
| private static final SerializableClassRegistry | |
| private final JDKSpecific. | |
| private final Class | |
| private static final Unsafe |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| public Object | |
| public Object | Returns: the new instanceInvoke the non-init constructor on this class. |
| public Object | Returns: the new instancethe ObjectInput to pass to the constructor objectInput)Invoke the public constructor accepting an ObjectInput. |
| public void | callReadObject(Object
the object to invoke on object, ObjectInputStream the object input stream to pass in inputStream)Invoke the |
| public void | callReadObjectNoData(Object
the object to invoke on object)Invoke the |
| public Object | Returns: the original objectthe object to invoke on object)Invoke the |
| public void | callWriteObject(Object
the object to invoke on object, ObjectOutputStream the object output stream to pass in outputStream)Invoke the |
| public Object | Returns: the nominated replacement objectthe object to invoke on object)Invoke the |
| private static ObjectStreamField[] | |
| public long | Returns: the serial version UIDGet the effective serial version UID of this class. |
| public SerializableField[] | |
| pack-priv <T> Constructor | |
| pack-priv <T> Constructor | |
| public SerializableField | Returns: the fieldthe name of the field name, Class<?> the field type fieldType, boolean true if the field should be unsharedCreate a synthetic field for this object class. |
| public SerializableField | Returns: the field ornull if there is one with that namethe name of the field name)Find a field for this object class by name. |
| private static SerializableField[] | |
| pack-priv JDKSpecific. | |
| public Class | |
| public boolean | Returns: whether this class has a non-init constructorDetermine whether this class has a non-init constructor. |
| public boolean | Returns: true if there is such a constructorDetermine whether this class has a public constructor accepting an ObjectInput. |
| public boolean | Returns: true if there is such a constructorDetermine whether this class has a public no-arg constructor. |
| public boolean | Returns: true if there is a readObject() methodDetermine whether this class has a |
| public boolean | Returns: true if there is a readObjectNoData() methodDetermine whether this class has a |
| public boolean | Returns: true if there is a readResolve() methodDetermine whether this class has a |
| public boolean | Returns: true if there is a writeObject() methodDetermine whether this class has a |
| public boolean | Returns: true if there is a writeReplace() methodDetermine whether this class has a |
| private static <T> T | |
| private static <T> T | |
| public Object | Returns: The new record createdThe record arguments for the constructor args)Invokes the record constructor for this class. |
| public boolean | |
| public String |
| effectiveSerialVersionUID | back to summary |
|---|---|
| private final long effectiveSerialVersionUID | |
| EMPTY_IHM | back to summary |
|---|---|
| private static final IdentityHashMap<Class<?>, Constructor<?>> EMPTY_IHM | |
| fields | back to summary |
|---|---|
| private final SerializableField[] fields | |
| fieldsByName | back to summary |
|---|---|
| private final Map<String, SerializableField> fieldsByName | |
| isRecord | back to summary |
|---|---|
| private final boolean isRecord | |
| NAME_COMPARATOR | back to summary |
|---|---|
| private static final Comparator<? super SerializableField> NAME_COMPARATOR | |
| NOFIELDS | back to summary |
|---|---|
| public static final SerializableField[] NOFIELDS An empty array of fields. | |
| nonInitConstructors | back to summary |
|---|---|
| private final IdentityHashMap<Class<?>, Constructor<?>> nonInitConstructors | |
| REGISTRY | back to summary |
|---|---|
| private static final SerializableClassRegistry REGISTRY | |
| serMethods | back to summary |
|---|---|
| private final JDKSpecific. | |
| subject | back to summary |
|---|---|
| private final Class<?> subject | |
| unsafe | back to summary |
|---|---|
| private static final Unsafe unsafe | |
| SerializableClass | back to summary |
|---|---|
| pack-priv SerializableClass(Class<?> subject) | |
| callNoArgConstructor | back to summary |
|---|---|
| public Object callNoArgConstructor() throws IOException Invoke the no-arg constructor on this class.
| |
| callNonInitConstructor | back to summary |
|---|---|
| public Object callNonInitConstructor(Class<?> target) Invoke the non-init constructor on this class.
| |
| callObjectInputConstructor | back to summary |
|---|---|
| public Object callObjectInputConstructor(final ObjectInput objectInput) throws IOException Invoke the public constructor accepting an ObjectInput.
| |
| callReadObject | back to summary |
|---|---|
| public void callReadObject(Object object, ObjectInputStream inputStream) throws IOException, ClassNotFoundException Invoke the
| |
| callReadObjectNoData | back to summary |
|---|---|
| public void callReadObjectNoData(Object object) throws ObjectStreamException Invoke the
| |
| callReadResolve | back to summary |
|---|---|
| public Object callReadResolve(Object object) throws ObjectStreamException Invoke the
| |
| callWriteObject | back to summary |
|---|---|
| public void callWriteObject(Object object, ObjectOutputStream outputStream) throws IOException Invoke the
| |
| callWriteReplace | back to summary |
|---|---|
| public Object callWriteReplace(Object object) throws ObjectStreamException Invoke the
| |
| getDeclaredSerialPersistentFields | back to summary |
|---|---|
| private static ObjectStreamField[] getDeclaredSerialPersistentFields(Class<?> clazz) | |
| getEffectiveSerialVersionUID | back to summary |
|---|---|
| public long getEffectiveSerialVersionUID() Get the effective serial version UID of this class.
| |
| getFields | back to summary |
|---|---|
| public SerializableField[] getFields() Get the serializable fields of this class. The returned array is a direct reference, so care should be taken not to modify it.
| |
| getNoArgConstructor | back to summary |
|---|---|
pack-priv <T> Constructor
| |
| getNoInitConstructor | back to summary |
|---|---|
pack-priv <T> Constructor
| |
| getSerializableField | back to summary |
|---|---|
| public SerializableField getSerializableField(String name, Class<?> fieldType, boolean unshared) throws ClassNotFoundException Create a synthetic field for this object class.
| |
| getSerializableFieldByName | back to summary |
|---|---|
| public SerializableField getSerializableFieldByName(String name) throws ClassNotFoundException Find a field for this object class by name.
| |
| getSerializableFields | back to summary |
|---|---|
| private static SerializableField[] getSerializableFields(Class<?> clazz, boolean isRecord) | |
| getSerMethods | back to summary |
|---|---|
| pack-priv JDKSpecific. | |
| getSubjectClass | back to summary |
|---|---|
| public Class Get the
| |
| hasNoInitConstructor | back to summary |
|---|---|
| public boolean hasNoInitConstructor(Class<?> target) Determine whether this class has a non-init constructor.
| |
| hasObjectInputConstructor | back to summary |
|---|---|
| public boolean hasObjectInputConstructor() Determine whether this class has a public constructor accepting an ObjectInput.
| |
| hasPublicNoArgConstructor | back to summary |
|---|---|
| public boolean hasPublicNoArgConstructor() Determine whether this class has a public no-arg constructor.
| |
| hasReadObject | back to summary |
|---|---|
| public boolean hasReadObject() Determine whether this class has a
| |
| hasReadObjectNoData | back to summary |
|---|---|
| public boolean hasReadObjectNoData() Determine whether this class has a
| |
| hasReadResolve | back to summary |
|---|---|
| public boolean hasReadResolve() Determine whether this class has a
| |
| hasWriteObject | back to summary |
|---|---|
| public boolean hasWriteObject() Determine whether this class has a
| |
| hasWriteReplace | back to summary |
|---|---|
| public boolean hasWriteReplace() Determine whether this class has a
| |
| invokeConstructor | back to summary |
|---|---|
| private static <T> T invokeConstructor(Constructor<T> constructor, Object... args) throws IOException | |
| invokeConstructorNoException | back to summary |
|---|---|
| private static <T> T invokeConstructorNoException(Constructor<T> constructor, Object... args) | |
| invokeRecordCanonicalConstructor | back to summary |
|---|---|
| public Object invokeRecordCanonicalConstructor(Object[] args) Invokes the record constructor for this class. If the class is not a record or the values are incorrect a IllegalStateException is thrown. | |
| isRecord | back to summary |
|---|---|
| public boolean isRecord() Determine if this class is a record.
| |
| toString | back to summary |
|---|---|
| public String toString() Overrides java. Doc from java. Returns a string representation of the object.
| |