public class IfBuilder extends StatementBuilderBase
| Modifier and Type | Field | Description |
|---|---|---|
private IfStatement |
m_if |
Method invocation.
|
private BlockBuilder |
m_thenBlock |
"then" block of statement (automatically created).
|
m_astm_source| Constructor | Description |
|---|---|
IfBuilder(ClassBuilder source,
Expression expr) |
Constructor.
|
| Modifier and Type | Method | Description |
|---|---|---|
(package private) Statement |
getStatement() |
Get the statement.
|
BlockBuilder |
getThen() |
Get the "then" conditional block.
|
void |
setElse(StatementBuilderBase stmt) |
Set the "else" conditional statement.
|
numberLiteral, setFinal, setPrivate, setPrivateFinal, setPrivateStaticFinal, setPublic, setPublicStatic, setPublicStaticFinal, setStatic, stringLiteralprivate final IfStatement m_if
private BlockBuilder m_thenBlock
public IfBuilder(ClassBuilder source, Expression expr)
source - expr - expressionStatement getStatement()
getStatement in class StatementBuilderBasepublic BlockBuilder getThen()
public void setElse(StatementBuilderBase stmt)
stmt -