Class CodegenCopierBase
java.lang.Object
org.glassfish.pfl.dynamic.copyobject.impl.CodegenCopierBase
- All Implemented Interfaces:
ClassCopierOrdinaryImpl.ClassFieldCopier
public abstract class CodegenCopierBase
extends Object
implements ClassCopierOrdinaryImpl.ClassFieldCopier
Base class for generated class copiers. Note that this class
makes use of the unsafe copier through the Bridge class.
Because of this, CodegenCopierBase could potentially be used
to bypass security restrictions. Consequently, this class must be
referenced inside a doPrivileged block, and a derived class
must have the permissions needed for the
Bridge class.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final Bridgeprivate PipelineClassCopierFactoryprivate static final Permission -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected final voidcopyBoolean(long offset, Object src, Object dest) protected final voidprotected final voidprotected final voidcopyDouble(long offset, Object src, Object dest) protected final voidprotected final voidprotected final voidprotected final voidprotected final voidMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface ClassCopierOrdinaryImpl.ClassFieldCopier
copy
-
Field Details
-
bridge
-
getBridgePermission
-
factory
-
-
Constructor Details
-
CodegenCopierBase
-
-
Method Details
-
copyObject
protected final void copyObject(Map<Object, Object> oldToNew, long offset, Object src, Object dest) throws ReflectiveCopyException- Throws:
ReflectiveCopyException
-
copyByte
-
copyChar
-
copyShort
-
copyInt
-
copyLong
-
copyFloat
-
copyDouble
-
copyBoolean
-