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

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

 Example:  

```

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

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


## 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 body. Convenience routine.
parameter: b: mandatory body

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

Description: Set the predicate. Convenience routine.
parameter: p: mandatory predicate

