コード例 #1
0
 @Override
 @SuppressWarnings("unchecked")
 public ASTRelationalexpressionList clone() {
   ASTRelationalexpressionList ret = new ASTRelationalexpressionList();
   ret.setList((ArrayList<ASTRelationalexpression>) list.clone());
   return ret;
 }
コード例 #2
0
 public ASTRelationalexpressionList deepClone() {
   ASTRelationalexpressionList result = new ASTRelationalexpressionList();
   if (list.size() != 0) {
     Iterator<ASTRelationalexpression> iter = iterator();
     while (iter.hasNext()) {
       result.add((ASTRelationalexpression) iter.next().deepClone());
     }
   }
   for (de.monticore.ast.Comment x : get_PreComments()) {
     result.get_PreComments().add(new de.monticore.ast.Comment(x.getText()));
   }
   for (de.monticore.ast.Comment x : get_PostComments()) {
     result.get_PostComments().add(new de.monticore.ast.Comment(x.getText()));
   }
   return result;
 }
コード例 #3
0
 public boolean equalsWithComments(Object o) {
   ASTRelationalexpressionList comp;
   if ((o instanceof ASTRelationalexpressionList)) {
     comp = (ASTRelationalexpressionList) o;
   } else {
     return false;
   }
   if (this.size() == comp.size()) {
     java.util.Iterator<ASTRelationalexpression> one = this.iterator();
     java.util.Iterator<ASTRelationalexpression> two = comp.iterator();
     while (one.hasNext()) {
       if (!one.next().equalsWithComments(two.next())) {
         return false;
       }
     }
   } else {
     return false;
   }
   return true;
 }
コード例 #4
0
 public boolean deepEqualsWithComments(Object o, boolean forceSameOrder) {
   ASTRelationalexpressionList comp;
   if ((o instanceof ASTRelationalexpressionList)) {
     comp = (ASTRelationalexpressionList) o;
   } else {
     return false;
   }
   if (this.size() == comp.size()) {
     if (forceSameOrder) {
       java.util.Iterator<ASTRelationalexpression> one = this.iterator();
       while (one.hasNext()) {
         ASTRelationalexpression oneNext = one.next();
         boolean matchFound = false;
         java.util.Iterator<ASTRelationalexpression> two = comp.iterator();
         while (two.hasNext()) {
           if (oneNext.deepEqualsWithComments(two.next(), forceSameOrder)) {
             matchFound = true;
             break;
           }
         }
         if (!matchFound) {
           return false;
         }
       }
     } else {
       java.util.Iterator<ASTRelationalexpression> one = this.iterator();
       java.util.Iterator<ASTRelationalexpression> two = comp.iterator();
       while (one.hasNext()) {
         if (!one.next().deepEqualsWithComments(two.next(), forceSameOrder)) {
           return false;
         }
       }
     }
   } else {
     return false;
   }
   return true;
 }
コード例 #5
0
 public boolean equals(ASTRelationalexpressionList o) {
   return list.equals(o.getList());
 }
コード例 #6
0
 public void add(ASTRelationalexpression o) {
   it.add(o);
   if (!t.is_Existent()) t.set_Existent(true);
 }