package net.loveruby.cflat.ast; import java.util.List; public class SwitchNode extends StmtNode { protected ExprNode cond; protected List cases; public SwitchNode(Location loc, ExprNode cond, List cases) { super(loc); this.cond = cond; this.cases = cases; } public ExprNode cond() { return cond; } public List cases() { return cases; } protected void _dump(Dumper d) { d.printMember("cond", cond); d.printNodeList("cases", cases); } public S accept(ASTVisitor visitor) { return visitor.visit(this); } }