3 import java.util.Vector;
5 public class SwitchBlockNode extends BlockStatementNode {
6 Vector<SwitchLabelNode> switch_conds;
9 public SwitchBlockNode(Vector<SwitchLabelNode> switch_conds, BlockNode switch_st) {
10 this.switch_conds = switch_conds;
11 this.switch_st = switch_st;
14 public Vector<SwitchLabelNode> getSwitchConditions() {
15 return this.switch_conds;
18 public BlockNode getSwitchBlockStatement() {
19 return this.switch_st;
22 public String printNode(int indent) {
24 for(int i = 0; i < this.switch_conds.size(); i++) {
25 result += this.switch_conds.elementAt(i).printNode(indent);
27 result += this.switch_st.printNode(indent);
32 return Kind.SwitchBlockNode;