| |
|
| java.lang.Object EDU.purdue.cs.bloat.tree.Node EDU.purdue.cs.bloat.tree.Stmt EDU.purdue.cs.bloat.tree.JumpStmt EDU.purdue.cs.bloat.tree.SwitchStmt
SwitchStmt | public class SwitchStmt extends JumpStmt (Code) | | SwitchStmt represents a switch statement.
|
Constructor Summary | |
public | SwitchStmt(Expr index, Block defaultTarget, Block[] targets, int[] values) Constructor.
Parameters: index - The expression on which the switch is made. Parameters: defaultTarget - The code to be executed if index is not contained in values. Parameters: targets - The code to be executed for each value in values. Parameters: values - The interesting values that index can have. |
SwitchStmt | public SwitchStmt(Expr index, Block defaultTarget, Block[] targets, int[] values)(Code) | | Constructor.
Parameters: index - The expression on which the switch is made. Parameters: defaultTarget - The code to be executed if index is not contained in values. Parameters: targets - The code to be executed for each value in values. Parameters: values - The interesting values that index can have. That is, thevalues of index in which a non-default target is executed. |
setDefaultTarget | public void setDefaultTarget(Block block)(Code) | | |
values | public int[] values()(Code) | | |
|
|
|