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 Bridge
private PipelineClassCopierFactory
private static final Permission
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected final void
copyBoolean
(long offset, Object src, Object dest) protected final void
protected final void
protected final void
copyDouble
(long offset, Object src, Object dest) protected final void
protected final void
protected final void
protected final void
protected final void
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.glassfish.pfl.dynamic.copyobject.impl.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
-