01: //
02: // Generated by JTB 1.2.1
03: //
04:
05: package oscript.syntaxtree;
06:
07: /**
08: * Grammar production:
09: * <PRE>
10: * f0 -> "throw"
11: * f1 -> Expression()
12: * f2 -> ";"
13: * </PRE>
14: */
15: public class ThrowBlock implements Node {
16: public NodeToken f0;
17: public Expression f1;
18: public NodeToken f2;
19:
20: public ThrowBlock(NodeToken n0, Expression n1, NodeToken n2) {
21: f0 = n0;
22: f1 = n1;
23: f2 = n2;
24: }
25:
26: public ThrowBlock(Expression n0) {
27: f0 = new NodeToken("throw");
28: f1 = n0;
29: f2 = new NodeToken(";");
30: }
31:
32: public void accept(oscript.visitor.Visitor v) {
33: v.visit(this );
34: }
35:
36: public Object accept(oscript.visitor.ObjectVisitor v, Object argu) {
37: return v.visit(this, argu);
38: }
39: }
|