Esempio n. 1
0
 @SuppressWarnings({"unchecked", "cast"})
 public ByteType fullCopy() {
   ByteType res = (ByteType) copy();
   for (int i = 0; i < getNumChildNoTransform(); i++) {
     ASTNode node = getChildNoTransform(i);
     if (node != null) node = node.fullCopy();
     res.setChild(node, i);
   }
   return res;
 }
Esempio n. 2
0
 @SuppressWarnings({"unchecked", "cast"})
 public ByteType copy() {
   try {
     ByteType node = (ByteType) 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;
 }
Esempio n. 3
0
 public void outAByteBaseType(AByteBaseType node) {
   mProductions.addLast(ByteType.v());
 }
Esempio n. 4
0
 @SuppressWarnings({"unchecked", "cast"})
 public ByteType clone() throws CloneNotSupportedException {
   ByteType node = (ByteType) super.clone();
   node.narrowingConversionTo_TypeDecl_values = null;
   node.unaryNumericPromotion_computed = false;
   node.unaryNumericPromotion_value = null;
   node.boxed_computed = false;
   node.boxed_value = null;
   node.jvmName_computed = false;
   node.jvmName_value = null;
   node.getSootType_computed = false;
   node.getSootType_value = null;
   node.in$Circle(false);
   node.is$Final(false);
   return node;
 }