01: //
02: // Generated by JTB 1.2.1
03: //
04:
05: package oscript.syntaxtree;
06:
07: /**
08: * Grammar production:
09: * <PRE>
10:
11: * f0 -> "for"
12: * f1 -> "("
13: * f2 -> PreLoopStatement()
14: * f3 -> ":"
15: * f4 -> Expression()
16: * f5 -> ")"
17: * f6 -> EvaluationUnit()
18: * </PRE>
19: */
20: public class CollectionForLoopStatement implements Node {
21: public NodeToken f0;
22: public NodeToken f1;
23: public PreLoopStatement f2;
24: public NodeToken f3;
25: public Expression f4;
26: public NodeToken f5;
27: public EvaluationUnit f6;
28: public boolean hasVarInScope = true; // assume the worst
29: public boolean hasFxnInScope = true; // assume the worst
30: public Node translated = null;
31:
32: public CollectionForLoopStatement(NodeToken n0, NodeToken n1,
33: PreLoopStatement n2, NodeToken n3, Expression n4,
34: NodeToken n5, EvaluationUnit n6, boolean hasVarInScope,
35: boolean hasFxnInScope) {
36: f0 = n0;
37: f1 = n1;
38: f2 = n2;
39: f3 = n3;
40: f4 = n4;
41: f5 = n5;
42: f6 = n6;
43: this .hasVarInScope = hasVarInScope;
44: this .hasFxnInScope = hasFxnInScope;
45: }
46:
47: public CollectionForLoopStatement(PreLoopStatement n0,
48: Expression n1, EvaluationUnit n2) {
49: f0 = new NodeToken("for");
50: f1 = new NodeToken("(");
51: f2 = n0;
52: f3 = new NodeToken(":");
53: f4 = n1;
54: f5 = new NodeToken(")");
55: f6 = n2;
56: }
57:
58: public void accept(oscript.visitor.Visitor v) {
59: v.visit(this );
60: }
61:
62: public Object accept(oscript.visitor.ObjectVisitor v, Object argu) {
63: return v.visit(this, argu);
64: }
65: }
|