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