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 -> [ "public" | "protected" | "private" ]
11: * f1 -> <IDENTIFIER>
12: * f2 -> FormalParameters()
13: * f3 -> [ "throws" NameList() ]
14: * f4 -> "{"
15: * f5 -> [ ExplicitConstructorInvocation() ]
16: * f6 -> ( BlockStatement() )*
17: * f7 -> "}"
18: * </pre>
19: */
20: public class ConstructorDeclaration implements Node {
21: public NodeOptional f0;
22: public NodeToken f1;
23: public FormalParameters f2;
24: public NodeOptional f3;
25: public NodeToken f4;
26: public NodeOptional f5;
27: public NodeListOptional f6;
28: public NodeToken f7;
29:
30: public ConstructorDeclaration(NodeOptional n0, NodeToken n1,
31: FormalParameters n2, NodeOptional n3, NodeToken n4,
32: NodeOptional n5, NodeListOptional n6, NodeToken n7) {
33: f0 = n0;
34: f1 = n1;
35: f2 = n2;
36: f3 = n3;
37: f4 = n4;
38: f5 = n5;
39: f6 = n6;
40: f7 = n7;
41: }
42:
43: public ConstructorDeclaration(NodeOptional n0, NodeToken n1,
44: FormalParameters n2, NodeOptional n3, NodeOptional n4,
45: NodeListOptional n5) {
46: f0 = n0;
47: f1 = n1;
48: f2 = n2;
49: f3 = n3;
50: f4 = new NodeToken("{");
51: f5 = n4;
52: f6 = n5;
53: f7 = new NodeToken("}");
54: }
55:
56: public void accept(xtc.lang.javacc.visitor.Visitor v) {
57: v.visit(this );
58: }
59:
60: public Object accept(xtc.lang.javacc.visitor.ObjectVisitor v,
61: Object argu) {
62: return v.visit(this, argu);
63: }
64: }
|