@SuppressWarnings({"unchecked", "cast"}) public VarDeclStmt clone() throws CloneNotSupportedException { VarDeclStmt node = (VarDeclStmt) super.clone(); node.canCompleteNormally_computed = false; node.in$Circle(false); node.is$Final(false); return node; }
@SuppressWarnings({"unchecked", "cast"}) public VarDeclStmt fullCopy() { VarDeclStmt res = (VarDeclStmt) copy(); for (int i = 0; i < getNumChildNoTransform(); i++) { ASTNode node = getChildNoTransform(i); if (node != null) node = node.fullCopy(); res.setChild(node, i); } return res; }
@SuppressWarnings({"unchecked", "cast"}) public VarDeclStmt copy() { try { VarDeclStmt node = (VarDeclStmt) clone(); if (children != null) node.children = (ASTNode[]) children.clone(); return node; } catch (CloneNotSupportedException e) { } System.err.println("Error: Could not clone node of type " + getClass().getName() + "!"); return null; }