public override bool Equals(Object o) { if (this == o) { return(true); } if ((o == null) || (this.GetType() != o.GetType())) { return(false); } UnarySentence ns = (UnarySentence)o; return(ns.negated.Equals(negated)); }
public virtual Object visitNotSentence(UnarySentence ns, Object arg) { Hashtable s =(Hashtable)arg; return new SetOps().union(s,(Hashtable)ns.getNegated().accept(this,arg)); }
public Object visitNotSentence(UnarySentence fs, Object arg) { Object negatedValue = fs.getNegated().accept(this,null); if (negatedValue != null) { return (!((bool) negatedValue)); } else { return null; } }