Exemple #1
0
 public object Visit(ASTNotBond node, object data)
 {
     System.Console.Out.WriteLine(IndentString() + node);
     ++indent;
     data = node.ChildrenAccept(this, data);
     --indent;
     return(data);
 }
Exemple #2
0
        public object Visit(ASTNotBond node, object data)
        {
            object left = node.JjtGetChild(0).JjtAccept(this, data);

            if (node.Type == SMARTSParserConstants.NOT)
            {
                LogicalOperatorBond bond = new LogicalOperatorBond(builder)
                {
                    Operator = "not",
                    Left     = (IQueryBond)left
                };
                return(bond);
            }
            else
            {
                return(left);
            }
        }
Exemple #3
0
 // TODO: Accept only one bond. Need to find out whether MQL supports
 // logical bonds
 public object Visit(ASTNotBond node, object data)
 {
     return(node.JjtGetChild(0).JjtAccept(this, data));
 }