at.dms.kjc
Class CloneGenerator

java.lang.Object
  extended by at.dms.kjc.CloneGenerator

public class CloneGenerator
extends Object

This class will generate code to clone fields that it thinks should be cloned in the target classes, and to copy other fields directly over. If you have a class with some fields that the CloneGenerator is cloning but you do NOT want to be cloned, you can specify this by creating the following field in your class, and filling it with the names of the fields that you do not want to be cloned, e.g.: public static final String[] DO_NOT_CLONE_THESE_FIELDS = { "mySpecialParent" } If this field is not present in your class, then all fields of your class will be considered for cloning.


Constructor Summary
CloneGenerator()
           
 
Method Summary
static boolean inTargetClasses(String className)
          Whether or not
static void main(String[] args)
          Call as with argument "replace" to do replacement in actual java code.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CloneGenerator

public CloneGenerator()
Method Detail

main

public static void main(String[] args)
Call as with argument "replace" to do replacement in actual java code. NOTE that this should be run from $STREAMIT_HOME/src directory to do the right thing for replacement.


inTargetClasses

public static boolean inTargetClasses(String className)
Whether or not
className
is a class we're generating cloning code for.