public class IfBuilder extends StatementBuilderBase
Modifier and Type | Field and Description |
---|---|
private IfStatement |
m_if
Method invocation.
|
private BlockBuilder |
m_thenBlock
"then" block of statement (automatically created).
|
m_source
m_ast
Constructor and Description |
---|
IfBuilder(ClassBuilder source,
Expression expr)
Constructor.
|
Modifier and Type | Method and 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
-