jef.deepCopier
Interface DeepCopier

All Known Implementing Classes:
StatefulDeepCopier

public interface DeepCopier

Concrete classes implementing this interface are in charge of copying chains of cp_infos from a source Constant Pool Table to a destination Constant Pool Table.

Author:
Francesco Russo frusso@dev.java.net

Method Summary
 int deepCopy(int index)
          Copies the chain of cp_infos starting at index from the srcCpt to the dstCpt.
 int deepCopy(int index, boolean duplicate)
           
 ConstantPoolTable getDstCpt()
          Gets the destination ConstantPoolTable instance, that is the ConstantPoolTable the cp_info-chain should be copied to.
 ConstantPoolTable getSrcCpt()
          Gets the source ConstantPoolTable instance, that is the ConstantPoolTable containing the cp_info to be copied to the destination ConstantPoolTable instance.
 void setDstCpt(ConstantPoolTable cpt)
          Sets the destination ConstantPoolTable instance, that is the ConstantPoolTable the cp_info-chain should be copied to.
 void setSrcCpt(ConstantPoolTable cpt)
          Sets the source ConstantPoolTable instance, that is the ConstantPoolTable containing the cp_info to be copied to the destination ConstantPoolTable instance.
 

Method Detail

setSrcCpt

void setSrcCpt(ConstantPoolTable cpt)
Sets the source ConstantPoolTable instance, that is the ConstantPoolTable containing the cp_info to be copied to the destination ConstantPoolTable instance.

Parameters:
cpt - The source ConstantPoolTable instance

getSrcCpt

ConstantPoolTable getSrcCpt()
Gets the source ConstantPoolTable instance, that is the ConstantPoolTable containing the cp_info to be copied to the destination ConstantPoolTable instance.

Returns:
ConstantPoolTable The source ConstantPoolTable instance

setDstCpt

void setDstCpt(ConstantPoolTable cpt)
Sets the destination ConstantPoolTable instance, that is the ConstantPoolTable the cp_info-chain should be copied to.

Parameters:
cpt - The destination ConstantPoolTable instance

getDstCpt

ConstantPoolTable getDstCpt()
Gets the destination ConstantPoolTable instance, that is the ConstantPoolTable the cp_info-chain should be copied to.

Returns:
ConstantPoolTable The destination ConstantPoolTable instance

deepCopy

int deepCopy(int index)
             throws DeepCopyException,
                    java.lang.CloneNotSupportedException
Copies the chain of cp_infos starting at index from the srcCpt to the dstCpt.

Parameters:
index - The index in the source ConstantPoolTable from which the copy has to be started
Returns:
int The new index into the destination ConstantPoolTable of the cp_info located at position index in the source ConstantPoolTable
Throws:
DeepCopyException - Unable to perform the deep copy
java.lang.CloneNotSupportedException

deepCopy

int deepCopy(int index,
             boolean duplicate)
             throws DeepCopyException,
                    java.lang.CloneNotSupportedException
Throws:
DeepCopyException
java.lang.CloneNotSupportedException