Top Description Fields Constructors Methods
com.sun.codemodel

public final Class JForEach

extends Object
implements JStatement
Class Inheritance
All Implemented Interfaces
com.sun.codemodel.JStatement

ForEach Statement This will generate the code for statement based on the new j2se 1.5 j.l.s.
Author
Bhakti

Field Summary

Modifier and TypeField and Description
private JBlock
private final JExpression
private final JVar
private final JType
private final String

Constructor Summary

AccessConstructor and Description
public
JForEach(JType vartype, String variable, JExpression collection)

Method Summary

Modifier and TypeMethod and Description
public JBlock
body()

public void
public JVar
var()

Returns a reference to the loop variable.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

bodyback to summary
private JBlock body
collectionback to summary
private final JExpression collection
loopVarback to summary
private final JVar loopVar
typeback to summary
private final JType type
varback to summary
private final String var

Constructor Detail

JForEachback to summary
public JForEach(JType vartype, String variable, JExpression collection)

Method Detail

bodyback to summary
public JBlock body()
stateback to summary
public void state(JFormatter f)

Implements com.sun.codemodel.JStatement.state.

Annotations
@Override
varback to summary
public JVar var()

Returns a reference to the loop variable.