Modifier and Type | Method and Description |
---|---|
static DoWhileStm |
build(Predicate p,
Block b)
Create a do-while loop.
|
Block |
getBody()
Get the loop body.
|
Predicate |
getPredicate()
Get the loop predicate.
|
void |
setBody(Block b)
Set the body.
|
void |
setPredicate(Predicate p)
Set the predicate.
|
attachTag, getSubElements, isCompound, replaceSubElement, retrieveTag
public static DoWhileStm build(Predicate p, Block b)
Create a do-while loop.
b
- mandatory bodyp
- mandatory predicatepublic Predicate getPredicate()
Get the loop predicate.
public Block getBody()
Get the loop body.
public void setPredicate(Predicate p)
Set the predicate. Convenience routine.
p
- mandatory predicatepublic void setBody(Block b)
Set the body. Convenience routine.
b
- mandatory body