* @param type variable type (must be an iterator subclass or generic type)
* @param init variable initialization expression
* @param block statement body block
*/
public void addIteratedForStatement(String name, Type type, ExpressionBuilderBase init, BlockBuilder block) {
MethodInvocation methcall = m_ast.newMethodInvocation();
methcall.setExpression(m_ast.newSimpleName(name));
methcall.setName(m_ast.newSimpleName("hasNext"));
addForStatement(name, type, init.getExpression(), methcall, null, block);
}