AddBooleanQuery() private method

private AddBooleanQuery ( string xpathQuery ) : int
xpathQuery string
return int
Esempio n. 1
0
        internal override bool CompileAttribute(Compiler compiler) {
            string name   = compiler.Input.LocalName;
            string value  = compiler.Input.Value;
            if (Ref.Equal(name, compiler.Atoms.Test)) {
                if (this.type == ConditionType.ConditionOtherwise) {
                    return false;
                }
                this.testKey = compiler.AddBooleanQuery(value);
            }
            else {
                return false;
            }

            return true;
        }
Esempio n. 2
0
        internal override bool CompileAttribute(Compiler compiler)
        {
            string name  = compiler.Input.LocalName;
            string value = compiler.Input.Value;

            if (Ref.Equal(name, compiler.Atoms.Test))
            {
                if (_type == ConditionType.ConditionOtherwise)
                {
                    return(false);
                }
                _testKey = compiler.AddBooleanQuery(value);
            }
            else
            {
                return(false);
            }

            return(true);
        }