@SuppressWarnings({"unchecked", "cast"})
 public ParSuperConstructorAccess fullCopy() {
   ParSuperConstructorAccess res = (ParSuperConstructorAccess) 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 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;
 }
Пример #3
0
 /** @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;
 }
Пример #4
0
 /** @apilevel low-level */
 @SuppressWarnings({"unchecked", "cast"})
 public AssignPlusExpr fullCopy() {
   AssignPlusExpr res = (AssignPlusExpr) copy();
   for (int i = 0; i < getNumChildNoTransform(); i++) {
     ASTNode node = getChildNoTransform(i);
     if (node != null) node = node.fullCopy();
     res.setChild(node, i);
   }
   return res;
 }
 @SuppressWarnings({"unchecked", "cast"})
 public ArrayTypeWithSizeAccess fullCopy() {
   ArrayTypeWithSizeAccess res = (ArrayTypeWithSizeAccess) copy();
   for (int i = 0; i < getNumChildNoTransform(); i++) {
     ASTNode node = getChildNoTransform(i);
     if (node != null) node = node.fullCopy();
     res.setChild(node, i);
   }
   return res;
 }
Пример #6
0
 /**
  * Create a deep copy of the AST subtree at this node. The copy is dangling, i.e. has no parent.
  *
  * @return dangling copy of the subtree at this node
  * @apilevel low-level
  */
 @SuppressWarnings({"unchecked", "cast"})
 public Wildcard fullCopy() {
   Wildcard tree = (Wildcard) copy();
   if (children != null) {
     for (int i = 0; i < children.length; ++i) {
       ASTNode child = (ASTNode) children[i];
       if (child != null) {
         child = child.fullCopy();
         tree.setChild(child, i);
       }
     }
   }
   return tree;
 }