public interface

IJavaWhile

implements IJavaCompound
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

[Expand]
Inherited Constants
From interface com.pnfsoftware.jeb.core.units.code.java.IJavaElement
Public Methods
abstract IJavaWhile duplicate()
Duplicate this element.
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.IJavaCompound
From interface com.pnfsoftware.jeb.core.units.code.java.IJavaElement
From interface com.pnfsoftware.jeb.core.units.code.java.IJavaExpression
From interface com.pnfsoftware.jeb.core.units.code.java.IJavaStatement

Public Methods

public abstract IJavaWhile duplicate ()

Duplicate this element.

Returns
  • a (possibly) duplicated object of the same type

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