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