/** * Returns a (deep) copy of this instance * @return The copy */ public GAPP getCopy() { GAPP copy = new GAPP(); GAPPCopier copier = new GAPPCopier(); for (GAPPBaseInstruction curInstr : instructions) { copy.instructions.add((GAPPBaseInstruction) curInstr.accept(copier, null)); } return copy; }
GAPP gappStart = new GAPP();
@Override public void visit(AssignmentNode node) { GAPP gapp = new GAPP(); node.setGAPP(gapp); gappCreator.setGapp(gapp);