public class JConditional extends Object implements IJStatement
| Modifier | Constructor and Description |
|---|---|
protected |
JConditional(IJExpression aTestExpr)
Constructor
|
| Modifier and Type | Method and Description |
|---|---|
JBlock |
_else()
Create a block to be executed by "else" branch
|
JConditional |
_elseif(IJExpression aTestExpr)
Creates ... else if(...) ...
|
JBlock |
_then()
Return the block to be executed by the "then" branch
|
void |
state(JFormatter f) |
IJExpression |
test() |
protected JConditional(@Nonnull IJExpression aTestExpr)
aTestExpr - JExpression which will determine branching@Nonnull public IJExpression test()
@Nonnull public JBlock _then()
null.@Nonnull public JBlock _else()
@Nonnull public JConditional _elseif(@Nonnull IJExpression aTestExpr)
aTestExpr - The test expression for the new ifJConditionalpublic void state(@Nonnull JFormatter f)
state in interface IJStatementCopyright © 2013–2015 Philip Helger. All rights reserved.