@SuppressWarnings({"unchecked", "cast"}) public StringLiteral fullCopy() { StringLiteral res = (StringLiteral) 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 StringLiteral copy() { try { StringLiteral node = (StringLiteral) 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; }
@SuppressWarnings({"unchecked", "cast"}) public StringLiteral clone() throws CloneNotSupportedException { StringLiteral node = (StringLiteral) super.clone(); node.constant_computed = false; node.constant_value = null; node.type_computed = false; node.type_value = null; node.in$Circle(false); node.is$Final(false); return node; }