public final class JForEach extends java.lang.Object implements JStatement
Modifier and Type | Field and Description |
---|---|
private JBlock |
body |
private JExpression |
collection |
private JVar |
loopVar |
private JType |
type |
private java.lang.String |
var |
Constructor and Description |
---|
JForEach(JType vartype,
java.lang.String variable,
JExpression collection) |
Modifier and Type | Method and Description |
---|---|
JBlock |
body() |
void |
state(JFormatter f) |
JVar |
var()
Returns a reference to the loop variable.
|
private final JType type
private final java.lang.String var
private JBlock body
private final JExpression collection
private final JVar loopVar
public JForEach(JType vartype, java.lang.String variable, JExpression collection)
public JVar var()
public JBlock body()
public void state(JFormatter f)
state
in interface JStatement