/** * Creates an enhanced For statement based on j2se 1.5 JLS * and add it to this block * * @return Newly generated enhanced For statement per j2se 1.5 * specification */ public JForEach forEach(JType varType, String name, JExpression collection) { return insert(new JForEach( varType, name, collection)); } public void state(JFormatter f) {
/** * Creates an enhanced For statement based on j2se 1.5 JLS * and add it to this block * * @return Newly generated enhanced For statement per j2se 1.5 * specification */ public JForEach forEach(JType varType, String name, JExpression collection) { return insert(new JForEach( varType, name, collection)); } public void state(JFormatter f) {
/** * Creates an enhanced For statement based on j2se 1.5 JLS * and add it to this block * * @return Newly generated enhanced For statement per j2se 1.5 * specification */ public JForEach forEach(JType varType, String name, JExpression collection) { return insert(new JForEach( varType, name, collection)); } public void state(JFormatter f) {
/** * Creates an enhanced For statement based on j2se 1.5 JLS * and add it to this block * * @return Newly generated enhanced For statement per j2se 1.5 * specification */ public JForEach forEach(JType varType, String name, JExpression collection) { return insert(new JForEach( varType, name, collection)); } public void state(JFormatter f) {
/** * Creates an enhanced For statement based on j2se 1.5 JLS * and add it to this block * * @return Newly generated enhanced For statement per j2se 1.5 * specification */ public JForEach forEach(JType varType, String name, JExpression collection) { return insert(new JForEach( varType, name, collection)); } public void state(JFormatter f) {
forEachAttribute = new JForEach(model.ref(Attribute.class), variableManager.createId("attribute"), getXSR().invoke("getAttributes")); if (!mixed) { forEachChildElement = new JForEach(model.ref(XoXMLStreamReader.class), variableManager.createId("elementReader"), getXSR().invoke("getChildElements")); } else { forEachChildElement = new JForEach(model.ref(XoXMLStreamReader.class), variableManager.createId("elementReader"), getXSR().invoke("getMixedChildElements"));