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" | "static" | "final" | "transient" | "volatile" )*
11: * f1 -> Type()
12: * f2 -> VariableDeclarator()
13: * f3 -> ( "," VariableDeclarator() )*
14: * f4 -> ";"
15: * </pre>
16: */
17: public class FieldDeclaration implements Node {
18: public NodeListOptional f0;
19: public Type f1;
20: public VariableDeclarator f2;
21: public NodeListOptional f3;
22: public NodeToken f4;
23:
24: public FieldDeclaration(NodeListOptional n0, Type n1,
25: VariableDeclarator n2, NodeListOptional n3, NodeToken n4) {
26: f0 = n0;
27: f1 = n1;
28: f2 = n2;
29: f3 = n3;
30: f4 = n4;
31: }
32:
33: public FieldDeclaration(NodeListOptional n0, Type n1,
34: VariableDeclarator n2, NodeListOptional n3) {
35: f0 = n0;
36: f1 = n1;
37: f2 = n2;
38: f3 = n3;
39: f4 = new NodeToken(";");
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: }
|