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