public interface

IJavaWhile

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

Class Overview

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
 

Summary

Public Methods
abstract IJavaBlock getBody()
Get the loop body.
abstract IJavaPredicate getPredicate()
Get the loop predicate.
abstract void setBody(IJavaBlock b)
Set the loop body.
abstract void setPredicate(IJavaPredicate p)
Set the loop 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 loop body.

Parameters
b mandatory body

public abstract void setPredicate (IJavaPredicate p)

Set the loop predicate.

Parameters
p mandatory predicate