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