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.
-
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 java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.glassfish.pfl.dynamic.copyobject.impl.ClassCopierOrdinaryImpl.ClassFieldCopier
copy
-
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
-