/** * Create a leaf expression when we aren't sure where the variable is * located. * @param operator the operator type that was found * @param expression the expression to check * @param leafCache the list of leaves * @return if the expression is a sarg, return it, otherwise null */ private ExpressionTree createLeaf(PredicateLeaf.Operator operator, ExprNodeGenericFuncDesc expression, List<PredicateLeaf> leafCache) { return createLeaf(operator, expression, leafCache, findVariable(expression)); }