public class JConditional extends java.lang.Object implements JStatement
Modifier and Type | Field and Description |
---|---|
private JBlock |
_else
JBlock of statements for optional "else" clause
|
private JBlock |
_then
JBlock of statements for "then" clause
|
private JExpression |
test
JExpression to test to determine branching
|
Constructor and Description |
---|
JConditional(JExpression test)
Constructor
|
Modifier and Type | Method and Description |
---|---|
JBlock |
_else()
Create a block to be executed by "else" branch
|
JConditional |
_elseif(JExpression boolExp)
Creates ...
|
JBlock |
_then()
Return the block to be excuted by the "then" branch
|
void |
state(JFormatter f) |
private JExpression test
private JBlock _then
private JBlock _else
JConditional(JExpression test)
test
- JExpression which will determine branchingpublic JBlock _then()
public JBlock _else()
public JConditional _elseif(JExpression boolExp)
public void state(JFormatter f)
state
in interface JStatement