Errai 3.0.1-SNAPSHOT

org.jboss.errai.codegen.control
Class SwitchBlock

java.lang.Object
  extended by org.jboss.errai.codegen.AbstractStatement
      extended by org.jboss.errai.codegen.control.SwitchBlock
All Implemented Interfaces:
Statement

public class SwitchBlock
extends AbstractStatement

Author:
Christian Sadilek

Constructor Summary
SwitchBlock()
           
SwitchBlock(Statement switchExprStmt)
           
 
Method Summary
 void addCase(LiteralValue<?> value)
           
 String generate(Context context)
           
 BlockStatement getCaseBlock(LiteralValue<?> value)
           
 BlockStatement getDefaultBlock()
           
 void setSwitchExpr(Statement switchExprStmt)
           
 void setSwitchExpr(String expr)
           
 
Methods inherited from class org.jboss.errai.codegen.AbstractStatement
getType
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SwitchBlock

public SwitchBlock()

SwitchBlock

public SwitchBlock(Statement switchExprStmt)
Method Detail

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)

Errai 3.0.1-SNAPSHOT

Copyright © 2013-2014 JBoss, a division of Red Hat. All Rights Reserved.