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 -> <IDENTIFIER>
11: * f1 -> ":"
12: * f2 -> Statement()
13: * </pre>
14: */
15: public class LabeledStatement implements Node {
16: public NodeToken f0;
17: public NodeToken f1;
18: public Statement f2;
19:
20: public LabeledStatement(NodeToken n0, NodeToken n1, Statement n2) {
21: f0 = n0;
22: f1 = n1;
23: f2 = n2;
24: }
25:
26: public LabeledStatement(NodeToken n0, Statement n1) {
27: f0 = n0;
28: f1 = new NodeToken(":");
29: f2 = n1;
30: }
31:
32: public void accept(xtc.lang.javacc.visitor.Visitor v) {
33: v.visit(this );
34: }
35:
36: public Object accept(xtc.lang.javacc.visitor.ObjectVisitor v,
37: Object argu) {
38: return v.visit(this, argu);
39: }
40: }
|