01: //
02: // Generated by JTB 1.2.2
03: //
04:
05: package xtc.lang.javacc.syntaxtree;
06:
07: /**
08: * Grammar production.
09: * <pre>
10: * f0 -> "switch"
11: * f1 -> "("
12: * f2 -> Expression()
13: * f3 -> ")"
14: * f4 -> "{"
15: * f5 -> ( SwitchLabel() ( BlockStatement() )* )*
16: * f6 -> "}"
17: * </pre>
18: */
19: public class SwitchStatement implements Node {
20: public NodeToken f0;
21: public NodeToken f1;
22: public Expression f2;
23: public NodeToken f3;
24: public NodeToken f4;
25: public NodeListOptional f5;
26: public NodeToken f6;
27:
28: public SwitchStatement(NodeToken n0, NodeToken n1, Expression n2,
29: NodeToken n3, NodeToken n4, NodeListOptional n5,
30: NodeToken n6) {
31: f0 = n0;
32: f1 = n1;
33: f2 = n2;
34: f3 = n3;
35: f4 = n4;
36: f5 = n5;
37: f6 = n6;
38: }
39:
40: public SwitchStatement(Expression n0, NodeListOptional n1) {
41: f0 = new NodeToken("switch");
42: f1 = new NodeToken("(");
43: f2 = n0;
44: f3 = new NodeToken(")");
45: f4 = new NodeToken("{");
46: f5 = n1;
47: f6 = new NodeToken("}");
48: }
49:
50: public void accept(xtc.lang.javacc.visitor.Visitor v) {
51: v.visit(this );
52: }
53:
54: public Object accept(xtc.lang.javacc.visitor.ObjectVisitor v,
55: Object argu) {
56: return v.visit(this, argu);
57: }
58: }
|