示例#1
0
文件: IdUse.java 项目: bugvm/bugvm
 @SuppressWarnings({"unchecked", "cast"})
 public IdUse clone() throws CloneNotSupportedException {
   IdUse node = (IdUse) super.clone();
   node.in$Circle(false);
   node.is$Final(false);
   return node;
 }
示例#2
0
文件: IdUse.java 项目: bugvm/bugvm
 @SuppressWarnings({"unchecked", "cast"})
 public IdUse fullCopy() {
   IdUse res = (IdUse) 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
文件: IdUse.java 项目: bugvm/bugvm
 @SuppressWarnings({"unchecked", "cast"})
 public IdUse copy() {
   try {
     IdUse node = (IdUse) 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;
 }