| Modifier and Type | Field and Description |
|---|---|
| private static final ReflectionFactory | |
| private static final ReflectionFactory |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public final MethodHandle | Returns: a direct MethodHandle for the syntheticreadObject method
or null if the class falls in a disallowed categorya Serializable class cl)Generate and return a direct MethodHandle which implements
the general default behavior for serializable class's |
| public final MethodHandle | Returns: a direct MethodHandle for the syntheticwriteObject method
or null if the class falls in a disallowed categorya Serializable class cl)Generate and return a direct MethodHandle which implements
the general default behavior for serializable class's |
| public static ReflectionFactory | Returns: the ReflectionFactoryProvides the caller with the capability to instantiate reflective objects. |
| public final boolean | Returns: true if the class has a static initializer,
otherwise falsea serializable class cl)Returns true if the class has a static initializer. |
| public final Constructor | Returns: A no-arg constructor for the class; returnsnull if
the class does not implement java.the class to instantiate cl)Returns an accessible no-arg constructor for an externalizable class to be initialized using a public no-argument constructor. |
| public Constructor | Returns: an accessible constructorthe class to instantiate cl, Constructor<?> the constructor to call constructorToCall)Returns an accessible constructor capable of creating instances of the given class, initialized by the given constructor. |
| public final Constructor | Returns: a no-arg constructor for the class ornull if
the class or supertypes do not have a suitable no-arg constructorthe class to instantiate cl)Returns an accessible no-arg constructor for a class. |
| public final OptionalDataException | Returns: a new OptionalDataExceptionthe value of bool)eof in the created OptionalDataExceptionReturns a new OptionalDataException with |
| public final MethodHandle | Returns: a direct MethodHandle for thereadObject method of the class or
null if the class does not have a readObject methoda Serializable class cl)Returns a direct MethodHandle for the |
| public final MethodHandle | Returns: a direct MethodHandle for thereadObjectNoData method
of the class or null if the class does not have a
readObjectNoData methoda Serializable class cl)Returns a direct MethodHandle for the |
| public final MethodHandle | Returns: a direct MethodHandle for thereadResolve method of the class or
null if the class does not have a readResolve methodthe Serializable class cl)Returns a direct MethodHandle for the |
| public final ObjectStreamField[] | Returns: the declaredserialPersistentFields from a
serializable class, or null if none is declared, the field
is declared but not valid, or the class is not a valid serializable classa Serializable class cl)Returns the declared |
| public final MethodHandle | Returns: a direct MethodHandle for thewriteObject method of the class or
null if the class does not have a writeObject methoda Serializable class cl)Returns a direct MethodHandle for the |
| public final MethodHandle | Returns: a direct MethodHandle for thewriteReplace method of the class or
null if the class does not have a writeReplace methodthe Serializable class cl)Returns a direct MethodHandle for the |
| delegate | back to summary |
|---|---|
| private static final ReflectionFactory delegate | |
| soleInstance | back to summary |
|---|---|
| private static final ReflectionFactory soleInstance | |
| ReflectionFactory | back to summary |
|---|---|
| private ReflectionFactory() | |
| defaultReadObjectForSerialization | back to summary |
|---|---|
| public final MethodHandle defaultReadObjectForSerialization(Class<?> cl) Generate and return a direct MethodHandle which implements
the general default behavior for serializable class's
The generated method will invoke
Only fields which are eligible for default serialization will be populated.
This includes only fields which are not
Requesting a default serialization method for a class in a disallowed
category is not supported;
The generated method will accept the instance as its first argument
and the
| |
| defaultWriteObjectForSerialization | back to summary |
|---|---|
| public final MethodHandle defaultWriteObjectForSerialization(Class<?> cl) Generate and return a direct MethodHandle which implements
the general default behavior for serializable class's
The generated method will invoke
Only fields which are eligible for default serialization will be written
to the buffer.
This includes only fields which are not
Requesting a default serialization method for a class in a disallowed
category is not supported;
The generated method will accept the instance as its first argument
and the
| |
| getReflectionFactory | back to summary |
|---|---|
| public static ReflectionFactory getReflectionFactory() Provides the caller with the capability to instantiate reflective objects. The returned
| |
| hasStaticInitializerForSerialization | back to summary |
|---|---|
| public final boolean hasStaticInitializerForSerialization(Class<?> cl) Returns true if the class has a static initializer. The presence of a static initializer is used to compute the serialVersionUID.
| |
| newConstructorForExternalization | back to summary |
|---|---|
| public final Constructor Returns an accessible no-arg constructor for an externalizable class to be initialized using a public no-argument constructor.
| |
| newConstructorForSerialization | back to summary |
|---|---|
| public Constructor Returns an accessible constructor capable of creating instances of the given class, initialized by the given constructor.
| |
| newConstructorForSerialization | back to summary |
|---|---|
| public final Constructor Returns an accessible no-arg constructor for a class. The no-arg constructor is found searching the class and its supertypes.
| |
| newOptionalDataExceptionForSerialization | back to summary |
|---|---|
| public final OptionalDataException newOptionalDataExceptionForSerialization(boolean bool) Returns a new OptionalDataException with
| |
| readObjectForSerialization | back to summary |
|---|---|
| public final MethodHandle readObjectForSerialization(Class<?> cl) Returns a direct MethodHandle for the
| |
| readObjectNoDataForSerialization | back to summary |
|---|---|
| public final MethodHandle readObjectNoDataForSerialization(Class<?> cl) Returns a direct MethodHandle for the
| |
| readResolveForSerialization | back to summary |
|---|---|
| public final MethodHandle readResolveForSerialization(Class<?> cl) Returns a direct MethodHandle for the
| |
| serialPersistentFields | back to summary |
|---|---|
| public final ObjectStreamField[] serialPersistentFields(Class<?> cl) Returns the declared
| |
| writeObjectForSerialization | back to summary |
|---|---|
| public final MethodHandle writeObjectForSerialization(Class<?> cl) Returns a direct MethodHandle for the
| |
| writeReplaceForSerialization | back to summary |
|---|---|
| public final MethodHandle writeReplaceForSerialization(Class<?> cl) Returns a direct MethodHandle for the
| |