Package com.sun.codemodel
Class JDoLoop
- java.lang.Object
-
- com.sun.codemodel.JDoLoop
-
- All Implemented Interfaces:
JStatement
public class JDoLoop extends java.lang.Object implements JStatement
Do loops
-
-
Field Summary
Fields Modifier and Type Field Description private JBlockbodyJBlock of statements which makes up body of this Do statementprivate JExpressiontestTest part of Do statement for determining exit state
-
Constructor Summary
Constructors Constructor Description JDoLoop(JExpression test)Construct a Do statment
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description JBlockbody()voidstate(JFormatter f)
-
-
-
Field Detail
-
test
private JExpression test
Test part of Do statement for determining exit state
-
body
private JBlock body
JBlock of statements which makes up body of this Do statement
-
-
Constructor Detail
-
JDoLoop
JDoLoop(JExpression test)
Construct a Do statment
-
-
Method Detail
-
body
public JBlock body()
-
state
public void state(JFormatter f)
- Specified by:
statein interfaceJStatement
-
-