org.jboss.jdeparser
Class JForEach
java.lang.Object
org.jboss.jdeparser.JForEach
- All Implemented Interfaces:
- JStatement
public final class JForEach
- extends Object
- implements JStatement
ForEach Statement
This will generate the code for statement based on the new
j2se 1.5 j.l.s.
- Author:
- Bhakti
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
JForEach
public JForEach(JType vartype,
String variable,
JExpression collection)
var
public JVar var()
- Returns a reference to the loop variable.
body
public JBlock body()
state
public void state(JFormatter f)
- Specified by:
state
in interface JStatement
Copyright © 2013 JBoss by Red Hat. All Rights Reserved.