public void Visit(PredicateNode predicateNode) { foreach(ConstraintNode c in predicateNode.constraintNodes) { c.Accept(this); } predicateNode.constraintNodes = newConstraintNodes; }
public void Visit(PredicateNode predicateNode) { PrintLine("<predicate>"); indent(); foreach (DBInfoNode db in predicateNode.dbInfos) { db.Accept(this); } foreach (ConstraintNode con in predicateNode.constraintNodes) { con.Accept(this); } unindent(); PrintLine("</predicate>"); }
public void Visit(PredicateNode predicateNode) { foreach(DBInfoNode db in predicateNode.dbInfos) { db.Accept(this); if(predicateNode.dbInfos.IndexOf(db) != predicateNode.dbInfos.Count - 1) { Print(","); } } if(predicateNode.dbInfos.Count > 0) Print(","); foreach(ConstraintNode con in predicateNode.constraintNodes) { con.Accept(this); if(predicateNode.constraintNodes.IndexOf(con) != predicateNode.constraintNodes.Count - 1) { Print(","); } } }
public ClauseNode(SubjectNode subject, PredicateNode predicate) { this.subject = subject; this.predicate = predicate; }
public void Visit(PredicateNode predicateNode) { throw new NotImplementedException (); }