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 -> "for"
11: * f1 -> "("
12: * f2 -> [ ForInit() ]
13: * f3 -> ";"
14: * f4 -> [ Expression() ]
15: * f5 -> ";"
16: * f6 -> [ ForUpdate() ]
17: * f7 -> ")"
18: * f8 -> Statement()
19: * </pre>
20: */
21: public class ForStatement implements Node {
22: public NodeToken f0;
23: public NodeToken f1;
24: public NodeOptional f2;
25: public NodeToken f3;
26: public NodeOptional f4;
27: public NodeToken f5;
28: public NodeOptional f6;
29: public NodeToken f7;
30: public Statement f8;
31:
32: public ForStatement(NodeToken n0, NodeToken n1, NodeOptional n2,
33: NodeToken n3, NodeOptional n4, NodeToken n5,
34: NodeOptional n6, NodeToken n7, Statement n8) {
35: f0 = n0;
36: f1 = n1;
37: f2 = n2;
38: f3 = n3;
39: f4 = n4;
40: f5 = n5;
41: f6 = n6;
42: f7 = n7;
43: f8 = n8;
44: }
45:
46: public ForStatement(NodeOptional n0, NodeOptional n1,
47: NodeOptional n2, Statement n3) {
48: f0 = new NodeToken("for");
49: f1 = new NodeToken("(");
50: f2 = n0;
51: f3 = new NodeToken(";");
52: f4 = n1;
53: f5 = new NodeToken(";");
54: f6 = n2;
55: f7 = new NodeToken(")");
56: f8 = n3;
57: }
58:
59: public void accept(xtc.lang.javacc.visitor.Visitor v) {
60: v.visit(this );
61: }
62:
63: public Object accept(xtc.lang.javacc.visitor.ObjectVisitor v,
64: Object argu) {
65: return v.visit(this, argu);
66: }
67: }
|