public ASTPtrdeclaratorList deepClone() { ASTPtrdeclaratorList result = new ASTPtrdeclaratorList(); if (list.size() != 0) { Iterator<ASTPtrdeclarator> iter = iterator(); while (iter.hasNext()) { result.add((ASTPtrdeclarator) iter.next().deepClone()); } } for (de.monticore.ast.Comment x : get_PreComments()) { result.get_PreComments().add(new de.monticore.ast.Comment(x.getText())); } for (de.monticore.ast.Comment x : get_PostComments()) { result.get_PostComments().add(new de.monticore.ast.Comment(x.getText())); } return result; }