@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; }