public class SwitchStatement extends Statement
| Modifier and Type | Field and Description | 
|---|---|
| protected BlockStatement[] | _blocks | 
| protected Expr[][] | _cases | 
| protected Statement | _defaultBlock | 
| protected java.lang.String | _label | 
| protected Expr | _value | 
BREAK_FALL_THROUGH, FALL_THROUGH, RETURN| Constructor and Description | 
|---|
| SwitchStatement(Location location,
               Expr value,
               java.util.ArrayList<Expr[]> caseList,
               java.util.ArrayList<BlockStatement> blockList,
               Statement defaultBlock,
               java.lang.String label) | 
| Modifier and Type | Method and Description | 
|---|---|
| Value | execute(Env env)Executes the 'switch' statement, returning any value. | 
| int | fallThrough()Returns true if control can go past the statement. | 
protected final Expr _value
protected final Expr[][] _cases
protected final BlockStatement[] _blocks
protected final Statement _defaultBlock
protected final java.lang.String _label
public SwitchStatement(Location location, Expr value, java.util.ArrayList<Expr[]> caseList, java.util.ArrayList<BlockStatement> blockList, Statement defaultBlock, java.lang.String label)