public boolean retainAll(Collection<?> c) { RuleAtom[] semionRulesCopy = null; RuleAtom[] semionRulesTMP = null; for (Object o : c) { if (o instanceof RuleAtom) { if (contains(o)) { if (semionRulesCopy == null) { semionRulesCopy = new RuleAtom[1]; semionRulesCopy[0] = (RuleAtom) o; } else { semionRulesTMP = new RuleAtom[semionRulesCopy.length + 1]; System.arraycopy(semionRulesCopy, 0, semionRulesTMP, 0, semionRulesCopy.length); semionRulesTMP[semionRulesTMP.length - 1] = (RuleAtom) o; semionRulesCopy = semionRulesTMP; } } } } kReSRuleAtoms = semionRulesCopy; return true; }
final public AtomList atomList() throws ParseException { AtomList atomList = new AtomList(); RuleAtom kReSAtom; switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { case SAME: case DIFFERENT: case LESSTHAN: case GREATERTHAN: case IS: case NEW_IRI: case NEW_LITERAL: case STARTS_WITH: case ENDS_WITH: case LET: case HAS: case VALUES: case NOT: case UNION: case IS_BLANK: kReSAtom = atom(); atomList = atomListRest(); atomList.addToHead(kReSAtom); {if (true) return atomList;} break; default: jj_la1[2] = jj_gen; {if (true) return atomList;} } throw new Error("Missing return statement in function"); }
if(body.size() == 1){
final public AtomList atomListRest() throws ParseException { AtomList atomList = new AtomList(); RuleAtom kReSAtom; switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { case AND: jj_consume_token(AND); atomList = atomList(); {if (true) return atomList;} break; default: jj_la1[3] = jj_gen; {if (true) return atomList;} } throw new Error("Missing return statement in function"); }
final public AtomList atomList() throws ParseException { AtomList atomList = new AtomList(); RuleAtom kReSAtom; switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { case SAME: case DIFFERENT: case LESSTHAN: case GREATERTHAN: case IS: case NEW_IRI: case NEW_LITERAL: case STARTS_WITH: case ENDS_WITH: case LET: case HAS: case VALUES: case NOT: case UNION: case IS_BLANK: kReSAtom = atom(); atomList = atomListRest(); atomList.addToHead(kReSAtom); {if (true) return atomList;} break; default: jj_la1[2] = jj_gen; {if (true) return atomList;} } throw new Error("Missing return statement in function"); }
if(body.size() == 1){
final public AtomList atomListRest() throws ParseException { AtomList atomList = new AtomList(); RuleAtom kReSAtom; switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { case AND: jj_consume_token(AND); atomList = atomList(); {if (true) return atomList;} break; default: jj_la1[3] = jj_gen; {if (true) return atomList;} } throw new Error("Missing return statement in function"); }
public boolean removeAll(Collection<?> c) { if (contains(c)) { for (Object o : c) { boolean removed = false; for (int i = 0; i < kReSRuleAtoms.length && !removed; i++) { RuleAtom semionRule = kReSRuleAtoms[i]; if (semionRule.equals(o)) { RuleAtom[] semionRulesCopy = new RuleAtom[kReSRuleAtoms.length - 1]; System.arraycopy(kReSRuleAtoms, 0, semionRulesCopy, 0, i); System.arraycopy(kReSRuleAtoms, i + 1, semionRulesCopy, 0, semionRulesCopy.length - i); kReSRuleAtoms = semionRulesCopy; removed = true; } } } return true; } else { return false; } }