示例#1
0
        public bool Match(CodeExpression expression)
        {
            LogicalNOT other = expression as LogicalNOT;

            return((other != null) &&
                   RuleExpressionWalker.Match(_singleExpression, other._singleExpression));
        }
        public bool Match(CodeExpression expression)
        {
            SingleBooleanResultExpression other = expression as SingleBooleanResultExpression;

            return((other != null) &&
                   RuleExpressionWalker.Match(_singleExpression, other._singleExpression));
        }
示例#3
0
        public bool Match(CodeExpression expression)
        {
            In other = expression as In;

            return((other != null) &&
                   RuleExpressionWalker.Match(_finalLogicalOrExpression, other._finalLogicalOrExpression));
        }
示例#4
0
        public bool Match(CodeExpression expression)
        {
            NotEqual other = expression as NotEqual;

            return((other != null) &&
                   RuleExpressionWalker.Match(_leftExpression, other._leftExpression) &&
                   RuleExpressionWalker.Match(_rightExpression, other._rightExpression));
        }
示例#5
0
        public bool Match(CodeExpression expression)
        {
            LogicalAND other = expression as LogicalAND;

            return((other != null) &&
                   RuleExpressionWalker.Match(_leftExpression, other._leftExpression) &&
                   RuleExpressionWalker.Match(_rightExpression, other._rightExpression));
        }
        public bool Match(CodeExpression expression)
        {
            ContainsString other = expression as ContainsString;

            return((other != null) &&
                   RuleExpressionWalker.Match(_toLowerMethodInvocationExpression, other._toLowerMethodInvocationExpression) &&
                   RuleExpressionWalker.Match(_toStringMethodInvocationExpression, other._toStringMethodInvocationExpression) &&
                   RuleExpressionWalker.Match(_containsMethodInvocationExpression, other._containsMethodInvocationExpression));
        }
示例#7
0
        public bool Match(CodeExpression expression)
        {
            StartsWithString other = expression as StartsWithString;

            return((other != null) &&
                   RuleExpressionWalker.Match(_toLowerMethodInvocationExpression, other._toLowerMethodInvocationExpression) &&
                   RuleExpressionWalker.Match(_toStringMethodInvocationExpression, other._toStringMethodInvocationExpression) &&
                   RuleExpressionWalker.Match(_startsWithMethodInvocationExpression, other._startsWithMethodInvocationExpression));
        }
        public bool Match(CodeExpression expression)
        {
            WildCardSearchExpression other = expression as WildCardSearchExpression;

            return((other != null) &&
                   RuleExpressionWalker.Match(_toLowerMethodInvocationExpression, other._toLowerMethodInvocationExpression) &&
                   RuleExpressionWalker.Match(_toStringMethodInvocationExpression, other._toStringMethodInvocationExpression) &&
                   RuleExpressionWalker.Match(_regexMatchMethodInvocationExpression, other._regexMatchMethodInvocationExpression));
        }
示例#9
0
        public bool Match(CodeExpression expression)
        {
            CompareTo other = expression as CompareTo;

            return((other != null) &&
                   RuleExpressionWalker.Match(_binaryExpressionBasedOnComparisonType, other._binaryExpressionBasedOnComparisonType) &&
                   RuleExpressionWalker.Match(_rightExpression, other._rightExpression) &&
                   RuleExpressionWalker.Match(_leftExpression, other._leftExpression) &&
                   RuleExpressionWalker.Match(_compareMethodInvocationExpression, other._compareMethodInvocationExpression));
        }
示例#10
0
        public bool Match(CodeExpression expression)
        {
            StringCompare other = expression as StringCompare;

            return((other != null) &&
                   RuleExpressionWalker.Match(_binaryExpressionBasedOnComparisonType, other._binaryExpressionBasedOnComparisonType) &&
                   RuleExpressionWalker.Match(_secondStringExpression, other._secondStringExpression) &&
                   RuleExpressionWalker.Match(_firstStringExpression, other._firstStringExpression) &&
                   RuleExpressionWalker.Match(_compareMethodInvocationExpression, other._compareMethodInvocationExpression) &&
                   RuleExpressionWalker.Match(_caseSensitiveExpression, other._caseSensitiveExpression));
        }