T - the type of the parent to be returned on completionpublic abstract class StatementBuilder<T> extends Object
| Modifier | Constructor and Description |
|---|---|
protected |
StatementBuilder(Builder builder) |
| Modifier and Type | Method and Description |
|---|---|
ExecExpressionBuilder<T> |
exec()
exec().{expression}.endExec()
|
T |
gotoLabel(String labelName) |
ThenExpressionBuilder<T> |
ifExp()
ifExp().{expression}.thenBlock()
{statements}
.elseBlock()
{statements}
.endIf()
|
T |
label(String labelName) |
ReturnExpressionBuilder<T> |
returnExp()
returnExp().{expression}.endReturn()
|
SetExpressionBuilder<T> |
set(String to)
set(varName).{expression}.endSet()
|
protected abstract brennus.StatementBuilder.StatementHandler<T> |
statementHandler() |
SwitchExpressionBuilder<T> |
switchOn()
switchOn().{expression}.switchBlock()
.caseBlock(int)
{statements}
.[end|break]Case()
.defaultCase()
{statements}
.[end|break]Case()
.endSwitch()
|
ThrowExpressionBuilder<T> |
throwExp()
throwExp().{expression}.endThrow()
|
T |
var(Type type,
String varName) |
protected final Builder builder
protected StatementBuilder(Builder builder)
protected abstract brennus.StatementBuilder.StatementHandler<T> statementHandler()
public final ReturnExpressionBuilder<T> returnExp()
public final SwitchExpressionBuilder<T> switchOn()
public final ThrowExpressionBuilder<T> throwExp()
public final SetExpressionBuilder<T> set(String to)
public final ThenExpressionBuilder<T> ifExp()
public final ExecExpressionBuilder<T> exec()
Copyright © 2014. All Rights Reserved.