private List<PropertyPathExpression> compileExpressions(Method method,
int argumentIndex, String[] properties) {
List<PropertyPathExpression> expressions = new ArrayList<PropertyPathExpression>(
properties.length);
for (String property : properties) {
PropertyPathExpression expression = new PropertyPathExpression(property);
Class<?>[] parameterTypes = method.getParameterTypes();
expression.initialize(parameterTypes[argumentIndex]);
expressions.add(expression);
}
return expressions;
}