# Interface: com.pnfsoftware.jeb.core.units.code.java.IJavaForEach

Java AST interface used to represent a for\-each \(Java 5\+\) loop statement. 

 Example:  

```

 for(type var: iterable) {
     // body
 }
 
```

## Method: duplicate
- return type: `com.pnfsoftware.jeb.core.units.code.java.IJavaForEach`


## Method: getBody
- return type: `com.pnfsoftware.jeb.core.units.code.java.IJavaBlock`

Description: Get the loop body.
return: the loop body, never null

## Method: getIterable
- return type: `com.pnfsoftware.jeb.core.units.code.java.IJavaExpression`

Description: 
return: 

## Method: getVariable
- return type: `com.pnfsoftware.jeb.core.units.code.java.IJavaDefinition`

Description: 
return: 

## Method: setBody
- parameter: `b`, type: `com.pnfsoftware.jeb.core.units.code.java.IJavaBlock`

Description: Set the loop post\-iteration statement.
parameter: b: mandatory loop body

## Method: setIterable
- parameter: `iterable`, type: `com.pnfsoftware.jeb.core.units.code.java.IJavaExpression`

Description: 
parameter: iterable: 

## Method: setVariable
- parameter: `var`, type: `com.pnfsoftware.jeb.core.units.code.java.IJavaDefinition`

Description: 
parameter: var: 

