JStatement
public final class JForEach extends java.lang.Object implements JStatement
Constructor | Description |
---|---|
JForEach(JType vartype,
java.lang.String variable,
JExpression collection) |
Modifier and Type | Method | Description |
---|---|---|
JBlock |
body() |
|
void |
state(JFormatter f) |
|
JVar |
var() |
Returns a reference to the loop variable.
|
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
Copyright © 2018 Oracle Corporation. All rights reserved.