001//
002// Generated by JTB 1.3.2
003//
004
005package jtb.syntaxtree;
006
007// Grammar production:
008// f0 -> <IDENTIFIER>
009// f1 -> FormalParameters()
010// f2 -> ( "[" "]" )*
011public class MethodDeclarator implements Node {
012   // This was added after running jtb to remove serializable warning.
013   static final long serialVersionUID = 20150406L;
014
015   private Node parent;
016   public NodeToken f0;
017   public FormalParameters f1;
018   public NodeListOptional f2;
019
020   public MethodDeclarator(NodeToken n0, FormalParameters n1, NodeListOptional n2) {
021      f0 = n0;
022      if ( f0 != null ) f0.setParent(this);
023      f1 = n1;
024      if ( f1 != null ) f1.setParent(this);
025      f2 = n2;
026      if ( f2 != null ) f2.setParent(this);
027   }
028
029   public void accept(jtb.visitor.Visitor v) {
030      v.visit(this);
031   }
032   public <R,A> R accept(jtb.visitor.GJVisitor<R,A> v, A argu) {
033      return v.visit(this,argu);
034   }
035   public <R> R accept(jtb.visitor.GJNoArguVisitor<R> v) {
036      return v.visit(this);
037   }
038   public <A> void accept(jtb.visitor.GJVoidVisitor<A> v, A argu) {
039      v.visit(this,argu);
040   }
041   public void setParent(Node n) { parent = n; }
042   public Node getParent()       { return parent; }
043}
044