public class WhileDo extends Object
Constructor and Description |
---|
WhileDo(NullaryPredicate test,
NullaryProcedure body)
Create a new WhileDo.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj) |
protected NullaryProcedure |
getBody()
Get the body of this loop.
|
protected NullaryPredicate |
getTest()
Get the test for this loop.
|
int |
hashCode() |
void |
run()
Execute this procedure.
|
String |
toString() |
public WhileDo(NullaryPredicate test, NullaryProcedure body)
test
- whether to keep goingbody
- to executepublic final void run()
protected NullaryProcedure getBody()
protected NullaryPredicate getTest()
Copyright © 2003–2014 The Apache Software Foundation. All rights reserved.