List<Object> in = new ArrayList<Object>(maxInSize);
for (Object v : values) {
in.add(v);
if (in.size() == maxInSize) {
Expression inExp = new ASTIn(path, new ASTList(in));
res = res != null ? res.orExp(inExp) : inExp;
in = new ArrayList<Object>(maxInSize);
}
}
if (in.size() > 0) {
Expression inExp = new ASTIn(path, new ASTList(in));
res = res != null ? res.orExp(inExp) : inExp;
}
return res;
}