// This file is automatically generated by DemeterJ. 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 -> FileSystem, root, CompoundFile {{ FileSystem it = (FileSystem) history.peek(); CompoundFile p = new CompoundFile(); it.set_root(p); history.push(p); }} after -> FileSystem, root, CompoundFile {{ history.pop(); }} before -> File, f, FileName {{ File it = (File) history.peek(); FileName p = new FileName(); it.set_f(p); history.push(p); }} after -> File, f, FileName {{ history.pop(); }} before -> CompoundFile, contents, File_PList {{ CompoundFile it = (CompoundFile) history.peek(); File_PList p = new File_PList(); it.set_contents(p); history.push(p); }} after -> CompoundFile, contents, File_PList {{ history.pop(); }} before -> CompoundFile, parent, CompoundFile {{ CompoundFile it = (CompoundFile) history.peek(); CompoundFile p = new CompoundFile(); it.set_parent(p); history.push(p); }} after -> CompoundFile, parent, CompoundFile {{ history.pop(); }} before -> Commands, command_list, Command_List {{ Commands it = (Commands) history.peek(); Command_List p = new Command_List(); it.set_command_list(p); history.push(p); }} after -> Commands, command_list, Command_List {{ 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 -> CreateEmptyFile, filename, FileName {{ CreateEmptyFile it = (CreateEmptyFile) history.peek(); FileName p = new FileName(); it.set_filename(p); history.push(p); }} after -> CreateEmptyFile, filename, FileName {{ history.pop(); }} before -> RemoveFile, filename, FileName {{ RemoveFile it = (RemoveFile) history.peek(); FileName p = new FileName(); it.set_filename(p); history.push(p); }} after -> RemoveFile, filename, FileName {{ history.pop(); }} before -> CopyFile, from, FileName {{ CopyFile it = (CopyFile) history.peek(); FileName p = new FileName(); it.set_from(p); history.push(p); }} after -> CopyFile, from, FileName {{ history.pop(); }} before -> CopyFile, to, FileName {{ CopyFile it = (CopyFile) history.peek(); FileName p = new FileName(); it.set_to(p); history.push(p); }} after -> CopyFile, to, FileName {{ history.pop(); }} before -> Step, v, Ident {{ Step it = (Step) history.peek(); it.set_v(dest); }} before -> FileName, path, Step_Path {{ FileName it = (FileName) history.peek(); Step_Path p = new Step_Path(); it.set_path(p); history.push(p); }} after -> FileName, path, Step_Path {{ 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 -> 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_PList, first, Nonempty_File_PList {{ File_PList it = (File_PList) history.peek(); Nonempty_File_PList p = new Nonempty_File_PList(); it.set_first(p); history.push(p); }} after -> File_PList, first, Nonempty_File_PList {{ history.pop(); }} before -> Command_List, first, Nonempty_Command_List {{ Command_List it = (Command_List) history.peek(); Nonempty_Command_List p = new Nonempty_Command_List(); it.set_first(p); history.push(p); }} after -> Command_List, first, Nonempty_Command_List {{ history.pop(); }} before -> Step_Path, first, Nonempty_Step_Path {{ Step_Path it = (Step_Path) history.peek(); Nonempty_Step_Path p = new Nonempty_Step_Path(); it.set_first(p); history.push(p); }} after -> Step_Path, first, Nonempty_Step_Path {{ history.pop(); }} before -> Nonempty_File_PList, it, File {{ Nonempty_File_PList it = (Nonempty_File_PList) 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_PList, it, File {{ history.pop(); }} before -> Nonempty_File_PList, next, Nonempty_File_PList {{ Nonempty_File_PList it = (Nonempty_File_PList) history.peek(); Nonempty_File_PList p = new Nonempty_File_PList(); it.set_next(p); history.push(p); }} after -> Nonempty_File_PList, next, Nonempty_File_PList {{ history.pop(); }} before -> Nonempty_Command_List, it, Command {{ Nonempty_Command_List it = (Nonempty_Command_List) 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_Command_List, it, Command {{ history.pop(); }} before -> Nonempty_Command_List, next, Nonempty_Command_List {{ Nonempty_Command_List it = (Nonempty_Command_List) history.peek(); Nonempty_Command_List p = new Nonempty_Command_List(); it.set_next(p); history.push(p); }} after -> Nonempty_Command_List, next, Nonempty_Command_List {{ history.pop(); }} before -> Nonempty_Step_Path, it, Step {{ Nonempty_Step_Path it = (Nonempty_Step_Path) history.peek(); Step p = new Step(); it.set_it(p); history.push(p); }} after -> Nonempty_Step_Path, it, Step {{ history.pop(); }} before -> Nonempty_Step_Path, next, Nonempty_Step_Path {{ Nonempty_Step_Path it = (Nonempty_Step_Path) history.peek(); Nonempty_Step_Path p = new Nonempty_Step_Path(); it.set_next(p); history.push(p); }} after -> Nonempty_Step_Path, next, Nonempty_Step_Path {{ history.pop(); }} }