* < filter for the method argument translated into an upper limit for the
* scan.
*/
private void handleStartsWithOperation(InvokeExpression invocation, Expression expr,
QueryData qd) {
Expression param = (Expression) invocation.getArguments().get(0);
param.bind();
if (expr.getLeft() instanceof PrimaryExpression && param instanceof Literal) {
addPrefix((PrimaryExpression) expr.getLeft(), param, (String) ((Literal) param).getLiteral(), qd);
} else if (expr.getLeft() instanceof PrimaryExpression &&
param instanceof ParameterExpression) {
Object parameterValue = getParameterValue(qd, (ParameterExpression) param);