Exemplo n.º 1
0
        private bool shouldOverideInclusive(TermLuceneASTNode min, TermLuceneASTNode max)
        {
            bool shouldOverride = false;

            switch (min.Type)
            {
            case TermLuceneASTNode.TermType.Int:
                shouldOverride = min.Term.StartsWith("Ix");
                break;

            case TermLuceneASTNode.TermType.Long:
                shouldOverride = min.Term.StartsWith("Lx");
                break;

            case TermLuceneASTNode.TermType.Float:
                shouldOverride = true;
                break;

            case TermLuceneASTNode.TermType.Double:
                shouldOverride = true;
                break;

            case TermLuceneASTNode.TermType.Hex:
                shouldOverride = true;
                break;
            }
            if (shouldOverride && (max.Type == TermLuceneASTNode.TermType.Null || max.Term == "*"))
            {
                return(true);
            }
            return(false);
        }
Exemplo n.º 2
0
 public MethodLuceneASTNode(string rawMethodStr, TermLuceneASTNode match) : this(rawMethodStr, new List <TermLuceneASTNode>() { match })
 {
 }