org.jboss.errai.codegen.control
Class SwitchBlock
java.lang.Object
org.jboss.errai.codegen.AbstractStatement
org.jboss.errai.codegen.control.SwitchBlock
- All Implemented Interfaces:
- Statement
public class SwitchBlock
- extends AbstractStatement
- Author:
- Christian Sadilek
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SwitchBlock
public SwitchBlock()
SwitchBlock
public SwitchBlock(Statement switchExprStmt)
addCase
public void addCase(LiteralValue<?> value)
getCaseBlock
public BlockStatement getCaseBlock(LiteralValue<?> value)
getDefaultBlock
public BlockStatement getDefaultBlock()
setSwitchExpr
public void setSwitchExpr(Statement switchExprStmt)
setSwitchExpr
public void setSwitchExpr(String expr)
generate
public String generate(Context context)
Copyright © 2013-2014 JBoss, a division of Red Hat. All Rights Reserved.