示例#1
0
 @SuppressWarnings({"unchecked", "cast"})
 public AnonymousDecl fullCopy() {
   AnonymousDecl res = (AnonymousDecl) 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 AnonymousDecl copy() {
   try {
     AnonymousDecl node = (AnonymousDecl) 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 AnonymousDecl clone() throws CloneNotSupportedException {
   AnonymousDecl node = (AnonymousDecl) super.clone();
   node.isCircular_visited = 0;
   node.isCircular_computed = false;
   node.isCircular_initialized = false;
   node.getSuperClassAccessOpt_computed = false;
   node.getSuperClassAccessOpt_value = null;
   node.getImplementsList_computed = false;
   node.getImplementsList_value = null;
   node.in$Circle(false);
   node.is$Final(false);
   return node;
 }