/** @apilevel internal */ @SuppressWarnings({"unchecked", "cast"}) public RawMethodDecl clone() throws CloneNotSupportedException { RawMethodDecl node = (RawMethodDecl) super.clone(); node.in$Circle(false); node.is$Final(false); return node; }
/** @apilevel low-level */ @SuppressWarnings({"unchecked", "cast"}) public RawMethodDecl fullCopy() { RawMethodDecl res = (RawMethodDecl) copy(); for (int i = 0; i < getNumChildNoTransform(); i++) { ASTNode node = getChildNoTransform(i); if (node != null) node = node.fullCopy(); res.setChild(node, i); } return res; }
/** @apilevel internal */ @SuppressWarnings({"unchecked", "cast"}) public RawMethodDecl copy() { try { RawMethodDecl node = (RawMethodDecl) 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; }