//
// Generated by JTB 1.2.1
//

package jde.parser.syntaxtree;

/**
 * Grammar production:
 * <PRE>
 * nodeToken -> &lt;IDENTIFIER&gt;
 * formalParameters -> FormalParameters()
 * nodeListOptional -> ( "[" "]" )*
 * </PRE>
 */
public class MethodDeclarator implements Node {
   private Node parent;
   public NodeToken nodeToken;
   public FormalParameters formalParameters;
   public NodeListOptional nodeListOptional;

   public MethodDeclarator(NodeToken n0, FormalParameters n1, NodeListOptional n2) {
      nodeToken = n0;
      if ( nodeToken != null ) nodeToken.setParent(this);
      formalParameters = n1;
      if ( formalParameters != null ) formalParameters.setParent(this);
      nodeListOptional = n2;
      if ( nodeListOptional != null ) nodeListOptional.setParent(this);
   }

   public void accept(jde.parser.visitor.Visitor v) {
      v.visit(this);
   }
   public Object accept(jde.parser.visitor.ObjectVisitor v, Object argu) {
      return v.visit(this,argu);
   }
   public void setParent(Node n) { parent = n; }
   public Node getParent()       { return parent; }
}

