// This file is automatically generated by Demeter/Java. CopyVisitor { (@ private java.util.Stack history = new java.util.Stack(); public CopyVisitor(Class firstClass) { try { history.push(firstClass.newInstance()); } catch(Exception e) { e.printStackTrace(); } } @) get copy (@ return history.peek(); @) return Object (@ get_copy() @) before -> CommandList, first, Nonempty_CommandList (@ CommandList it = (CommandList) history.peek(); Nonempty_CommandList p = new Nonempty_CommandList(); it.set_first(p); history.push(p); @) after -> CommandList, first, Nonempty_CommandList (@ history.pop(); @) before -> MakeDirectory, directoryname, DirectoryName (@ MakeDirectory it = (MakeDirectory) history.peek(); DirectoryName p = new DirectoryName(); it.set_directoryname(p); history.push(p); @) after -> MakeDirectory, directoryname, DirectoryName (@ history.pop(); @) before -> ChangeDirectoryDown, directoryname, DirectoryName (@ ChangeDirectoryDown it = (ChangeDirectoryDown) history.peek(); DirectoryName p = new DirectoryName(); it.set_directoryname(p); history.push(p); @) after -> ChangeDirectoryDown, directoryname, DirectoryName (@ history.pop(); @) before -> Find, directoryname, DirectoryName (@ Find it = (Find) history.peek(); DirectoryName p = new DirectoryName(); it.set_directoryname(p); history.push(p); @) after -> Find, directoryname, DirectoryName (@ history.pop(); @) before -> Echo, message, Message (@ Echo it = (Echo) history.peek(); Message p = new Message(); it.set_message(p); history.push(p); @) after -> Echo, message, Message (@ history.pop(); @) before -> DirectoryName, ident, Ident (@ DirectoryName it = (DirectoryName) history.peek(); it.set_ident(dest); @) before -> Message, string, String (@ Message it = (Message) history.peek(); it.set_string(dest); @) before -> Compound, c1, Command (@ Compound it = (Compound) history.peek(); Class c = dest.getClass(); Object p = null; try { p = c.newInstance(); } catch(Exception e) { e.printStackTrace(); } it.set_c1((Command) p); history.push(p); @) after -> Compound, c1, Command (@ history.pop(); @) before -> Compound, c2, Command (@ Compound it = (Compound) history.peek(); Class c = dest.getClass(); Object p = null; try { p = c.newInstance(); } catch(Exception e) { e.printStackTrace(); } it.set_c2((Command) p); history.push(p); @) after -> Compound, c2, Command (@ history.pop(); @) before -> SimpleFile, filename, FileName (@ SimpleFile it = (SimpleFile) history.peek(); FileName p = new FileName(); it.set_filename(p); history.push(p); @) after -> SimpleFile, filename, FileName (@ history.pop(); @) before -> CompoundFile, filename, FileName (@ CompoundFile it = (CompoundFile) history.peek(); FileName p = new FileName(); it.set_filename(p); history.push(p); @) after -> CompoundFile, filename, FileName (@ history.pop(); @) before -> CompoundFile, contents, File_List (@ CompoundFile it = (CompoundFile) history.peek(); File_List p = new File_List(); it.set_contents(p); history.push(p); @) after -> CompoundFile, contents, File_List (@ history.pop(); @) before -> FileName, ident, Ident (@ FileName it = (FileName) history.peek(); it.set_ident(dest); @) before -> PrintVisitor, indent, int (@ PrintVisitor it = (PrintVisitor) history.peek(); it.set_indent(dest); @) before -> PrintVisitor, needSpace, boolean (@ PrintVisitor it = (PrintVisitor) history.peek(); it.set_needSpace(dest); @) before -> SubgraphVisitor, is_equal, boolean (@ SubgraphVisitor it = (SubgraphVisitor) history.peek(); it.set_is_equal(dest); @) before -> EqualVisitor, is_equal, boolean (@ EqualVisitor it = (EqualVisitor) history.peek(); it.set_is_equal(dest); @) before -> DisplayVisitor, indent, int (@ DisplayVisitor it = (DisplayVisitor) history.peek(); it.set_indent(dest); @) before -> TraceVisitor, indent, int (@ TraceVisitor it = (TraceVisitor) history.peek(); it.set_indent(dest); @) before -> File_List, first, Nonempty_File_List (@ File_List it = (File_List) history.peek(); Nonempty_File_List p = new Nonempty_File_List(); it.set_first(p); history.push(p); @) after -> File_List, first, Nonempty_File_List (@ history.pop(); @) before -> Nonempty_CommandList, it, Command (@ Nonempty_CommandList it = (Nonempty_CommandList) history.peek(); Class c = dest.getClass(); Object p = null; try { p = c.newInstance(); } catch(Exception e) { e.printStackTrace(); } it.set_it((Command) p); history.push(p); @) after -> Nonempty_CommandList, it, Command (@ history.pop(); @) before -> Nonempty_CommandList, next, Nonempty_CommandList (@ Nonempty_CommandList it = (Nonempty_CommandList) history.peek(); Nonempty_CommandList p = new Nonempty_CommandList(); it.set_next(p); history.push(p); @) after -> Nonempty_CommandList, next, Nonempty_CommandList (@ history.pop(); @) before -> Nonempty_File_List, it, File (@ Nonempty_File_List it = (Nonempty_File_List) history.peek(); Class c = dest.getClass(); Object p = null; try { p = c.newInstance(); } catch(Exception e) { e.printStackTrace(); } it.set_it((File) p); history.push(p); @) after -> Nonempty_File_List, it, File (@ history.pop(); @) before -> Nonempty_File_List, next, Nonempty_File_List (@ Nonempty_File_List it = (Nonempty_File_List) history.peek(); Nonempty_File_List p = new Nonempty_File_List(); it.set_next(p); history.push(p); @) after -> Nonempty_File_List, next, Nonempty_File_List (@ history.pop(); @) }