Top Description Fields Constructors Methods
org.glassfish.pfl.dynamic.copyobject.impl

public abstract Class CodegenCopierBase

extends Object
implements ClassFieldCopier
Class Inheritance
All Implemented Interfaces
org.glassfish.pfl.dynamic.copyobject.impl.ClassCopierOrdinaryImpl.ClassFieldCopier
Imports
java.security.Permission, java.util.Map, org.glassfish.pfl.basic.reflection.Bridge, .BridgePermission, org.glassfish.pfl.dynamic.copyobject.spi.ReflectiveCopyException

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

Modifier and TypeField and Description
private static final Bridge
private PipelineClassCopierFactory
private static final Permission

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
protected final void
copyBoolean(long offset, Object src, Object dest)

protected final void
copyByte(long offset, Object src, Object dest)

protected final void
copyChar(long offset, Object src, Object dest)

protected final void
copyDouble(long offset, Object src, Object dest)

protected final void
copyFloat(long offset, Object src, Object dest)

protected final void
copyInt(long offset, Object src, Object dest)

protected final void
copyLong(long offset, Object src, Object dest)

protected final void
copyObject(Map<Object, Object> oldToNew, long offset, Object src, Object dest)

protected final void
copyShort(long offset, Object src, Object dest)

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

bridgeback to summary
private static final Bridge bridge
factoryback to summary
private PipelineClassCopierFactory factory
getBridgePermissionback to summary
private static final Permission getBridgePermission

Constructor Detail

CodegenCopierBaseback to summary
public CodegenCopierBase(PipelineClassCopierFactory factory)

Method Detail

copyBooleanback to summary
protected final void copyBoolean(long offset, Object src, Object dest)
copyByteback to summary
protected final void copyByte(long offset, Object src, Object dest)
copyCharback to summary
protected final void copyChar(long offset, Object src, Object dest)
copyDoubleback to summary
protected final void copyDouble(long offset, Object src, Object dest)
copyFloatback to summary
protected final void copyFloat(long offset, Object src, Object dest)
copyIntback to summary
protected final void copyInt(long offset, Object src, Object dest)
copyLongback to summary
protected final void copyLong(long offset, Object src, Object dest)
copyObjectback to summary
protected final void copyObject(Map<Object, Object> oldToNew, long offset, Object src, Object dest) throws ReflectiveCopyException
copyShortback to summary
protected final void copyShort(long offset, Object src, Object dest)