}
if (cascadeTypes.length == 0) {
return Stmt.loadLiteral(false).returnValue();
}
BooleanExpression megaExpr = null;
for (CascadeType type : cascadeTypes) {
if (type == CascadeType.ALL) {
// if the list includes ALL, abandon megaExpr and just return true
return Stmt.loadLiteral(true).returnValue();
}
BooleanExpression comparison = Bool.equals(Stmt.loadVariable(method.getParameters()[0].getName()), Stmt.loadLiteral(type));
if (megaExpr == null) {
megaExpr = comparison;
} else {
megaExpr = Bool.or(comparison, megaExpr);
}