Exemplo n.º 1
0
 @SuppressWarnings({"unchecked", "cast"})
 public RawClassDecl clone() throws CloneNotSupportedException {
   RawClassDecl node = (RawClassDecl) super.clone();
   node.subtype_TypeDecl_visited = new java.util.HashMap(4);
   node.instanceOf_TypeDecl_values = null;
   node.in$Circle(false);
   node.is$Final(false);
   return node;
 }
Exemplo n.º 2
0
 @SuppressWarnings({"unchecked", "cast"})
 public RawClassDecl fullCopy() {
   RawClassDecl res = (RawClassDecl) copy();
   for (int i = 0; i < getNumChildNoTransform(); i++) {
     ASTNode node = getChildNoTransform(i);
     if (node != null) node = node.fullCopy();
     res.setChild(node, i);
   }
   return res;
 }
Exemplo n.º 3
0
 @SuppressWarnings({"unchecked", "cast"})
 public RawClassDecl copy() {
   try {
     RawClassDecl node = (RawClassDecl) 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;
 }