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

Java AST interface to represent `while` loop statements. A while loop is a pre\-tested loop, that consists of a test predicate and a body.  

```

 while(predicate) {
     // body
 }
 
```

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


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

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

## Method: getPredicate
- return type: `com.pnfsoftware.jeb.core.units.code.java.IJavaPredicate`

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

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

Description: Set the loop body.
parameter: b: mandatory body

## Method: setPredicate
- parameter: `p`, type: `com.pnfsoftware.jeb.core.units.code.java.IJavaPredicate`

Description: Set the loop predicate.
parameter: p: mandatory predicate

