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

            if (node.Type == SMARTSParserConstants.NOT)
            {
                return(LogicalOperatorAtom.Not((IQueryAtom)left));
            }
            return(left);
        }
示例#3
0
        public object Visit(ASTNotExpression node, object data)
        {
            // well, I know there is a not in MQL :)
            if (node.Type == SMARTSParserConstants.NOT)
            {
                Not = true;
            }
            else
            {
                Not = false;
            }
            string str = "";

            for (int i = 0; i < node.JjtGetNumChildren(); i++)
            {
                str += node.JjtGetChild(i).JjtAccept(this, data);
            }
            return(str);
        }