Example #1
0
File: KApp.java Project: kszr/k
 @Override
 public boolean contains(Object o) {
   if (o instanceof Bracket) return contains(((Bracket) o).getContent());
   if (o instanceof Cast) return contains(((Cast) o).getContent());
   if (!(o instanceof KApp)) return false;
   KApp k = (KApp) o;
   return label.contains(k.label) && child.contains(k.child);
 }
Example #2
0
File: Freezer.java Project: kszr/k
 @Override
 public boolean contains(Object o) {
   if (o instanceof Bracket) return contains(((Bracket) o).getContent());
   if (o instanceof Cast) return contains(((Cast) o).getContent());
   if (!(o instanceof Freezer)) return false;
   Freezer f = (Freezer) o;
   return term.contains(f.term);
 }
 public static boolean contains(int id) {
   return Term.contains(id, list);
 }