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" | "abstract" | "final" | "native" | "synchronized" | "strictfp" )*
11: * f1 -> ResultType()
12: * f2 -> MethodDeclarator()
13: * f3 -> [ "throws" NameList() ]
14: * f4 -> ( Block() | ";" )
15: * </pre>
16: */
17: public class MethodDeclaration implements Node {
18: public NodeListOptional f0;
19: public ResultType f1;
20: public MethodDeclarator f2;
21: public NodeOptional f3;
22: public NodeChoice f4;
23:
24: public MethodDeclaration(NodeListOptional n0, ResultType n1,
25: MethodDeclarator n2, NodeOptional n3, NodeChoice n4) {
26: f0 = n0;
27: f1 = n1;
28: f2 = n2;
29: f3 = n3;
30: f4 = n4;
31: }
32:
33: public void accept(xtc.lang.javacc.visitor.Visitor v) {
34: v.visit(this );
35: }
36:
37: public Object accept(xtc.lang.javacc.visitor.ObjectVisitor v,
38: Object argu) {
39: return v.visit(this, argu);
40: }
41: }
|