public class IfBuilder extends StatementBuilderBase
Modifier and Type | Field and Description |
---|---|
private org.eclipse.jdt.core.dom.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,
org.eclipse.jdt.core.dom.Expression expr)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
(package private) org.eclipse.jdt.core.dom.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 org.eclipse.jdt.core.dom.IfStatement m_if
private BlockBuilder m_thenBlock
public IfBuilder(ClassBuilder source, org.eclipse.jdt.core.dom.Expression expr)
source
- expr
- expressionorg.eclipse.jdt.core.dom.Statement getStatement()
getStatement
in class StatementBuilderBase
public BlockBuilder getThen()
public void setElse(StatementBuilderBase stmt)
stmt
-