public interface

IJavaDoWhile

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

Example:

 do {
     // body
 }
 while(predicate);
 

Summary

[Expand]
Inherited Constants
From interface com.pnfsoftware.jeb.core.units.code.java.IJavaElement
Public Methods
abstract IJavaDoWhile 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 body.
abstract void setPredicate(IJavaPredicate p)
Set the 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 IJavaDoWhile 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 body. Convenience routine.

Parameters
b mandatory body

public abstract void setPredicate (IJavaPredicate p)

Set the predicate. Convenience routine.

Parameters
p mandatory predicate