com.caucho.quercus.statement
Class SwitchStatement
java.lang.Object
com.caucho.quercus.statement.Statement
com.caucho.quercus.statement.SwitchStatement
public class SwitchStatement
- extends Statement
Represents a switch statement.
Method Summary |
Value |
execute(Env env)
Executes the 'switch' statement, returning any value. |
int |
fallThrough()
Returns true if control can go past the statement. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
_value
protected final Expr _value
_cases
protected final Expr[][] _cases
_blocks
protected final BlockStatement[] _blocks
_defaultBlock
protected final Statement _defaultBlock
_label
protected final java.lang.String _label
SwitchStatement
public SwitchStatement(Location location,
Expr value,
java.util.ArrayList<Expr[]> caseList,
java.util.ArrayList<BlockStatement> blockList,
Statement defaultBlock,
java.lang.String label)
execute
public Value execute(Env env)
- Executes the 'switch' statement, returning any value.
- Specified by:
execute
in class Statement
fallThrough
public int fallThrough()
- Returns true if control can go past the statement.
- Overrides:
fallThrough
in class Statement