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_ast
m_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, stringLiteral
private final IfStatement m_if
private BlockBuilder m_thenBlock
public IfBuilder(ClassBuilder source, Expression expr)
source
- expr
- expressionStatement getStatement()
getStatement
in class StatementBuilderBase
public BlockBuilder getThen()
public void setElse(StatementBuilderBase stmt)
stmt
-