01: //
02: // Generated by JTB 1.2.1
03: //
04:
05: package oscript.syntaxtree;
06:
07: /**
08: * Grammar production:
09: * <PRE>
10: * f0 -> "try"
11: * f1 -> EvaluationUnit()
12: * f2 -> ( "catch" "(" Expression() <IDENTIFIER> ")" EvaluationUnit() )*
13: * f3 -> ( "catch" "(" <IDENTIFIER> ")" EvaluationUnit() )?
14: * f4 -> ( "finally" EvaluationUnit() )?
15: * </PRE>
16: */
17: public class TryStatement implements Node {
18: public NodeToken f0;
19: public EvaluationUnit f1;
20: public NodeListOptional f2;
21: public NodeOptional f3;
22: public NodeOptional f4;
23:
24: public TryStatement(NodeToken n0, EvaluationUnit n1,
25: NodeListOptional n2, NodeOptional n3, NodeOptional n4) {
26: f0 = n0;
27: f1 = n1;
28: f2 = n2;
29: f3 = n3;
30: f4 = n4;
31: }
32:
33: public TryStatement(EvaluationUnit n0, NodeListOptional n1,
34: NodeOptional n2, NodeOptional n3) {
35: f0 = new NodeToken("try");
36: f1 = n0;
37: f2 = n1;
38: f3 = n2;
39: f4 = n3;
40: }
41:
42: public void accept(oscript.visitor.Visitor v) {
43: v.visit(this );
44: }
45:
46: public Object accept(oscript.visitor.ObjectVisitor v, Object argu) {
47: return v.visit(this, argu);
48: }
49: }
|