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 JBlock
body
JBlock of statements which makes up body of this Do statementprivate JExpression
test
Test 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 JBlock
body()
void
state(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:
state
in interfaceJStatement
-
-