示例#1
0
文件: IfStmt.java 项目: h-inoue/JCop
 @SuppressWarnings({"unchecked", "cast"})
 public IfStmt fullCopy() {
   IfStmt res = (IfStmt) 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
文件: IfStmt.java 项目: h-inoue/JCop
 @SuppressWarnings({"unchecked", "cast"})
 public IfStmt copy() {
   try {
     IfStmt node = (IfStmt) 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
文件: IfStmt.java 项目: h-inoue/JCop
 @SuppressWarnings({"unchecked", "cast"})
 public IfStmt clone() throws CloneNotSupportedException {
   IfStmt node = (IfStmt) super.clone();
   node.isDAafter_Variable_values = null;
   node.isDUafter_Variable_values = null;
   node.canCompleteNormally_computed = false;
   node.else_branch_label_computed = false;
   node.then_branch_label_computed = false;
   node.in$Circle(false);
   node.is$Final(false);
   return node;
 }