예제 #1
0
 @SuppressWarnings({"unchecked", "cast"})
 public ReturnStmt fullCopy() {
   ReturnStmt res = (ReturnStmt) copy();
   for (int i = 0; i < getNumChildNoTransform(); i++) {
     ASTNode node = getChildNoTransform(i);
     if (node != null) node = node.fullCopy();
     res.setChild(node, i);
   }
   return res;
 }
예제 #2
0
 @SuppressWarnings({"unchecked", "cast"})
 public ReturnStmt copy() {
   try {
     ReturnStmt node = (ReturnStmt) 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;
 }
예제 #3
0
 @SuppressWarnings({"unchecked", "cast"})
 public ReturnStmt clone() throws CloneNotSupportedException {
   ReturnStmt node = (ReturnStmt) super.clone();
   node.finallyList_computed = false;
   node.finallyList_value = null;
   node.isDAafter_Variable_values = null;
   node.isDUafterReachedFinallyBlocks_Variable_values = null;
   node.isDAafterReachedFinallyBlocks_Variable_values = null;
   node.isDUafter_Variable_values = null;
   node.canCompleteNormally_computed = false;
   node.resultSaveLocalNum_computed = false;
   node.in$Circle(false);
   node.is$Final(false);
   return node;
 }