|
||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||
java.lang.Objectorg.jibx.schema.codegen.ASTBuilderBase
org.jibx.schema.codegen.StatementBuilderBase
org.jibx.schema.codegen.IfBuilder
public class IfBuilder
If statement builder. This wraps the AST if representation with convenience methods and added control information.
| Field Summary | |
|---|---|
private IfStatement |
m_if
Method invocation. |
private BlockBuilder |
m_thenBlock
"then" block of statement (automatically created). |
| Fields inherited from class org.jibx.schema.codegen.StatementBuilderBase |
|---|
m_source |
| Fields inherited from class org.jibx.schema.codegen.ASTBuilderBase |
|---|
m_ast |
| Constructor Summary | |
|---|---|
IfBuilder(ClassBuilder source,
Expression expr)
Constructor. |
|
| Method Summary | |
|---|---|
(package private) Statement |
getStatement()
Get the statement. |
BlockBuilder |
getThen()
Get the "then" conditional block. |
void |
setElse(StatementBuilderBase stmt)
Set the "else" conditional statement. |
| Methods inherited from class org.jibx.schema.codegen.ASTBuilderBase |
|---|
numberLiteral, setFinal, setPrivate, setPrivateFinal, setPrivateStaticFinal, setPublic, setPublicStatic, setPublicStaticFinal, setStatic, stringLiteral |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
private final IfStatement m_if
private BlockBuilder m_thenBlock
| Constructor Detail |
|---|
public IfBuilder(ClassBuilder source,
Expression expr)
source - expr - expression| Method Detail |
|---|
Statement getStatement()
getStatement in class StatementBuilderBasepublic BlockBuilder getThen()
public void setElse(StatementBuilderBase stmt)
stmt -
|
||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||