@Override public void endsConjunction(OBJECT_TYPE objectType) { switch (objectType) { case QUERY: this.createQuery(ConjunctiveQueryFactory.instance().create(this.label, this.atomSet, this.answerVars)); break; case NEG_CONSTRAINT: this.createNegConstraint(new DefaultNegativeConstraint(this.label, this.atomSet)); break; case RULE: if(this.atomSet2 == null) { this.atomSet2 = this.atomSet; this.atomSet = new LinkedListAtomSet(); } else { this.createRule(RuleFactory.instance().create(this.label, this.atomSet, this.atomSet2)); } break; default: break; } }