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 JBlockbodyJBlock of statements which makes up body of this While statementprivate JExpressiontestTest 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 JBlockbody()voidstate(JFormatter f)JExpressiontest()
-
-
-
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:
statein interfaceJStatement
-
-