コード例 #1
0
 public void Visit(PredicateNode predicateNode)
 {
     foreach(ConstraintNode c in predicateNode.constraintNodes) {
         c.Accept(this);
     }
     predicateNode.constraintNodes = newConstraintNodes;
 }
コード例 #2
0
ファイル: XMLPrinterVisitor.cs プロジェクト: SAUCS/CPTR-571-A
 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>");
 }
コード例 #3
0
ファイル: PrinterVisitor.cs プロジェクト: SAUCS/CPTR-571-A
        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(",");
                }
            }
        }
コード例 #4
0
ファイル: ClauseNode.cs プロジェクト: SAUCS/CPTR-571-A
 public ClauseNode(SubjectNode subject, PredicateNode predicate)
 {
     this.subject = subject;
     this.predicate = predicate;
 }
コード例 #5
0
ファイル: EvaluationVisitor.cs プロジェクト: SAUCS/CPTR-571-A
 public void Visit(PredicateNode predicateNode)
 {
     throw new NotImplementedException ();
 }