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 -> "throw"
11: * f1 -> Expression()
12: * f2 -> ";"
13: * </pre>
14: */
15: public class ThrowStatement implements Node {
16: public NodeToken f0;
17: public Expression f1;
18: public NodeToken f2;
19:
20: public ThrowStatement(NodeToken n0, Expression n1, NodeToken n2) {
21: f0 = n0;
22: f1 = n1;
23: f2 = n2;
24: }
25:
26: public ThrowStatement(Expression n0) {
27: f0 = new NodeToken("throw");
28: f1 = n0;
29: f2 = new NodeToken(";");
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: }
|