org.glassfish.pfl.dynamic.copyobject.impl
Class CodegenCopierBase

java.lang.Object
  extended by 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
CodegenCopierBase(PipelineClassCopierFactory factory)
           
 
Method Summary
protected  void copyBoolean(long offset, Object src, Object dest)
           
protected  void copyByte(long offset, Object src, Object dest)
           
protected  void copyChar(long offset, Object src, Object dest)
           
protected  void copyDouble(long offset, Object src, Object dest)
           
protected  void copyFloat(long offset, Object src, Object dest)
           
protected  void copyInt(long offset, Object src, Object dest)
           
protected  void copyLong(long offset, Object src, Object dest)
           
protected  void copyObject(Map<Object,Object> oldToNew, long offset, Object src, Object dest)
           
protected  void copyShort(long offset, Object src, Object dest)
           
 
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
 

Constructor Detail

CodegenCopierBase

public CodegenCopierBase(PipelineClassCopierFactory factory)
Method Detail

copyObject

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

copyByte

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

copyChar

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

copyShort

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

copyInt

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

copyLong

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

copyFloat

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

copyDouble

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

copyBoolean

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


Copyright © 2013 Oracle. All Rights Reserved.