public class SwitchBlock extends AbstractStatement
Constructor and Description |
---|
SwitchBlock() |
SwitchBlock(Statement switchExprStmt) |
Modifier and Type | Method and Description |
---|---|
void |
addCase(LiteralValue<?> value) |
String |
generate(Context context) |
BlockStatement |
getCaseBlock(LiteralValue<?> value) |
BlockStatement |
getDefaultBlock() |
void |
setSwitchExpr(Statement switchExprStmt) |
void |
setSwitchExpr(String expr) |
getType
public SwitchBlock()
public SwitchBlock(Statement switchExprStmt)
public void addCase(LiteralValue<?> value)
public BlockStatement getCaseBlock(LiteralValue<?> value)
public BlockStatement getDefaultBlock()
public void setSwitchExpr(Statement switchExprStmt)
public void setSwitchExpr(String expr)
Copyright © 2013-2015 JBoss, a division of Red Hat. All Rights Reserved.