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 -> "try"
11: * f1 -> Block()
12: * f2 -> ( "catch" "(" FormalParameter() ")" Block() )*
13: * f3 -> [ "finally" Block() ]
14: * </pre>
15: */
16: public class TryStatement implements Node {
17: public NodeToken f0;
18: public Block f1;
19: public NodeListOptional f2;
20: public NodeOptional f3;
21:
22: public TryStatement(NodeToken n0, Block n1, NodeListOptional n2,
23: NodeOptional n3) {
24: f0 = n0;
25: f1 = n1;
26: f2 = n2;
27: f3 = n3;
28: }
29:
30: public TryStatement(Block n0, NodeListOptional n1, NodeOptional n2) {
31: f0 = new NodeToken("try");
32: f1 = n0;
33: f2 = n1;
34: f3 = n2;
35: }
36:
37: public void accept(xtc.lang.javacc.visitor.Visitor v) {
38: v.visit(this );
39: }
40:
41: public Object accept(xtc.lang.javacc.visitor.ObjectVisitor v,
42: Object argu) {
43: return v.visit(this, argu);
44: }
45: }
|