Top Description Inners Fields Constructors Methods
org.jboss.marshalling.reflect

pack-priv final Class JDKSpecific

extends Object
Class Inheritance
Static Imports
java.lang.System.getSecurityManager, java.security.AccessController.doPrivileged, sun.reflect.ReflectionFactory.getReflectionFactory

JDK-specific classes which are replaced for different JDK major versions. This one is for Java 9 only.
Author
Richard Opalka

Nested and Inner Type Summary

Modifier and TypeClass and Description
pack-priv static class

Field Summary

Modifier and TypeField and Description
private static final ReflectionFactory

Constructor Summary

AccessConstructor and Description
pack-priv

Method Summary

Modifier and TypeMethod and Description
pack-priv static SerializableField.RecordComponent[]

Returns:

The record components array for this class
getRecordComponents
(Class<?>
The record class
type
)

Returns an ordered array of the record components for the given record class.

pack-priv static Object

Returns:

The record component for this record object
getRecordComponentValue
(Object
The record Object
recordObject
,
String
The record component name
name
,
Class<?>
The record component class type
type
)

Retrieves the value of the record component for the given record object.

pack-priv static Object

Returns:

The instantiated object
invokeRecordCanonicalConstructor
(Class<?>
The record class
recordType
,
SerializableField[]
The fields of the record class
fields
,
Object[]
The arguments for the constructor
args
)

Invokes the canonical constructor of a record class with the given argument values.

pack-priv static boolean

Returns:

true if the class is a record, false otherwise
isRecord
(Class<?>
The class type
type
)

Return if this class is a record type.

pack-priv static Constructor<?>
newConstructorForSerialization(Class<?> classToInstantiate, Constructor<?> constructorToCall)

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

reflectionFactoryback to summary
private static final ReflectionFactory reflectionFactory

Constructor Detail

JDKSpecificback to summary
pack-priv JDKSpecific()

Method Detail

getRecordComponentsback to summary
pack-priv static SerializableField.RecordComponent[] getRecordComponents(Class<?> type)

Returns an ordered array of the record components for the given record class.

Parameters
type:Class<?>

The record class

Returns:SerializableField.RecordComponent[]

The record components array for this class

getRecordComponentValueback to summary
pack-priv static Object getRecordComponentValue(Object recordObject, String name, Class<?> type)

Retrieves the value of the record component for the given record object.

Parameters
recordObject:Object

The record Object

name:String

The record component name

type:Class<?>

The record component class type

Returns:Object

The record component for this record object

Exceptions
IOException:
Some error
invokeRecordCanonicalConstructorback to summary
pack-priv static Object invokeRecordCanonicalConstructor(Class<?> recordType, SerializableField[] fields, Object[] args)

Invokes the canonical constructor of a record class with the given argument values.

Parameters
recordType:Class<?>

The record class

fields:SerializableField[]

The fields of the record class

args:Object[]

The arguments for the constructor

Returns:Object

The instantiated object

isRecordback to summary
pack-priv static boolean isRecord(Class<?> type)

Return if this class is a record type.

Parameters
type:Class<?>

The class type

Returns:boolean

true if the class is a record, false otherwise

newConstructorForSerializationback to summary
pack-priv static Constructor<?> newConstructorForSerialization(Class<?> classToInstantiate, Constructor<?> constructorToCall)
org.jboss.marshalling.reflect back to summary

pack-priv final Class JDKSpecific.SerMethods

extends Object
Class Inheritance

Field Summary

Modifier and TypeField and Description
private final Constructor<?>
private final Constructor<?>
private final MethodHandle
private final MethodHandle
private final MethodHandle
private final MethodHandle
private final MethodHandle

Constructor Summary

AccessConstructor and Description
pack-priv
SerMethods(Class<?> clazz)

Method Summary

Modifier and TypeMethod and Description
pack-priv void
pack-priv void
pack-priv Object
pack-priv void
pack-priv Object
pack-priv Constructor<?>
pack-priv Constructor<?>
pack-priv boolean
pack-priv boolean
pack-priv boolean
pack-priv boolean
pack-priv boolean
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

noArgConstructorback to summary
private final Constructor<?> noArgConstructor
objectInputConstructorback to summary
private final Constructor<?> objectInputConstructor
readObjectback to summary
private final MethodHandle readObject
readObjectNoDataback to summary
private final MethodHandle readObjectNoData
readResolveback to summary
private final MethodHandle readResolve
writeObjectback to summary
private final MethodHandle writeObject
writeReplaceback to summary
private final MethodHandle writeReplace

Constructor Detail

SerMethodsback to summary
pack-priv SerMethods(Class<?> clazz)

Method Detail

callReadObjectback to summary
pack-priv void callReadObject(Object object, ObjectInputStream inputStream) throws IOException, ClassNotFoundException
callReadObjectNoDataback to summary
pack-priv void callReadObjectNoData(Object object) throws ObjectStreamException
callReadResolveback to summary
pack-priv Object callReadResolve(Object object) throws ObjectStreamException
callWriteObjectback to summary
pack-priv void callWriteObject(Object object, ObjectOutputStream outputStream) throws IOException
callWriteReplaceback to summary
pack-priv Object callWriteReplace(Object object) throws ObjectStreamException
getNoArgConstructorback to summary
pack-priv Constructor<?> getNoArgConstructor()
getObjectInputConstructorback to summary
pack-priv Constructor<?> getObjectInputConstructor()
hasReadObjectback to summary
pack-priv boolean hasReadObject()
hasReadObjectNoDataback to summary
pack-priv boolean hasReadObjectNoData()
hasReadResolveback to summary
pack-priv boolean hasReadResolve()
hasWriteObjectback to summary
pack-priv boolean hasWriteObject()
hasWriteReplaceback to summary
pack-priv boolean hasWriteReplace()