コード例 #1
0
 @SuppressWarnings({"unchecked", "cast"})
 public LocalClassDeclStmt fullCopy() {
   LocalClassDeclStmt res = (LocalClassDeclStmt) 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 LocalClassDeclStmt copy() {
   try {
     LocalClassDeclStmt node = (LocalClassDeclStmt) 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 LocalClassDeclStmt clone() throws CloneNotSupportedException {
   LocalClassDeclStmt node = (LocalClassDeclStmt) super.clone();
   node.isDAafter_Variable_values = null;
   node.isDUafter_Variable_values = null;
   node.canCompleteNormally_computed = false;
   node.in$Circle(false);
   node.is$Final(false);
   return node;
 }