public BlockBuilder<StatementEnd> foreach(String loopVarName, Class<?> loopVarType) {
return foreach(loopVarName, MetaClassFactory.get(loopVarType));
}
private BlockBuilder<StatementEnd> foreach(final String loopVarName, final MetaClass loopVarType) {
final BlockStatement body = new BlockStatement();
appendCallElement(new DeferredCallElement(new DeferredCallback() {
@Override
public void doDeferred(CallWriter writer, Context context, Statement statement) {
GenUtil.assertIsIterable(statement);