public interface

IJavaDoWhile

implements ICompound
com.pnfsoftware.jeb.core.units.code.java.IJavaDoWhile

Class Overview

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.

 do 
   body
 while(predicate)
 

Summary

Public Methods
abstract IJavaBlock getBody()
Get the loop body.
abstract IJavaPredicate getPredicate()
Get the loop predicate.
abstract void setBody(IJavaBlock b)
Set the body.
abstract void setPredicate(IJavaPredicate p)
Set the predicate.
[Expand]
Inherited Methods
From interface com.pnfsoftware.jeb.core.units.code.java.ICompound
From interface com.pnfsoftware.jeb.core.units.code.java.IJavaElement

Public Methods

public abstract IJavaBlock getBody ()

Get the loop body.

Returns
  • the loop body, never null

public abstract IJavaPredicate getPredicate ()

Get the loop predicate.

Returns
  • the predicate, never null

public abstract void setBody (IJavaBlock b)

Set the body. Convenience routine.

Parameters
b mandatory body

public abstract void setPredicate (IJavaPredicate p)

Set the predicate. Convenience routine.

Parameters
p mandatory predicate