content: /* This file was generated by SableCC (http://www.sablecc.org/). */
  
  package com.abstratt.mdd.frontend.textuml.grammar.node;
  
  import com.abstratt.mdd.frontend.textuml.grammar.analysis.*;
  
  @SuppressWarnings("nls")
  public final class AParametersetDecl extends PParametersetDecl
  {
      private TModelComment _modelComment_;
      private TParameterset _parameterset_;
      private TIdentifier _name_;
      private TLParen _lParen_;
      private PIdentifierList _parameters_;
      private TRParen _rParen_;
  
      public AParametersetDecl()
      {
          // Constructor
      }
  
      public AParametersetDecl(
          @SuppressWarnings("hiding") TModelComment _modelComment_,
          @SuppressWarnings("hiding") TParameterset _parameterset_,
          @SuppressWarnings("hiding") TIdentifier _name_,
          @SuppressWarnings("hiding") TLParen _lParen_,
          @SuppressWarnings("hiding") PIdentifierList _parameters_,
          @SuppressWarnings("hiding") TRParen _rParen_)
      {
          // Constructor
          setModelComment(_modelComment_);
  
          setParameterset(_parameterset_);
  
          setName(_name_);
  
          setLParen(_lParen_);
  
          setParameters(_parameters_);
  
          setRParen(_rParen_);
  
      }
  
      @Override
      public Object clone()
      {
          return new AParametersetDecl(
              cloneNode(this._modelComment_),
              cloneNode(this._parameterset_),
              cloneNode(this._name_),
              cloneNode(this._lParen_),
              cloneNode(this._parameters_),
              cloneNode(this._rParen_));
      }
  
      public void apply(Switch sw)
      {
          ((Analysis) sw).caseAParametersetDecl(this);
      }
  
      public TModelComment getModelComment()
      {
          return this._modelComment_;
      }
  
      public void setModelComment(TModelComment node)
      {
          if(this._modelComment_ != null)
          {
              this._modelComment_.parent(null);
          }
  
          if(node != null)
          {
              if(node.parent() != null)
              {
                  node.parent().removeChild(node);
              }
  
              node.parent(this);
          }
  
          this._modelComment_ = node;
      }
  
      public TParameterset getParameterset()
      {
          return this._parameterset_;
      }
  
      public void setParameterset(TParameterset node)
      {
          if(this._parameterset_ != null)
          {
              this._parameterset_.parent(null);
          }
  
          if(node != null)
          {
              if(node.parent() != null)
              {
                  node.parent().removeChild(node);
              }
  
              node.parent(this);
          }
  
          this._parameterset_ = node;
      }
  
      public TIdentifier getName()
      {
          return this._name_;
      }
  
      public void setName(TIdentifier node)
      {
          if(this._name_ != null)
          {
              this._name_.parent(null);
          }
  
          if(node != null)
          {
              if(node.parent() != null)
              {
                  node.parent().removeChild(node);
              }
  
              node.parent(this);
          }
  
          this._name_ = node;
      }
  
      public TLParen getLParen()
      {
          return this._lParen_;
      }
  
      public void setLParen(TLParen node)
      {
          if(this._lParen_ != null)
          {
              this._lParen_.parent(null);
          }
  
          if(node != null)
          {
              if(node.parent() != null)
              {
                  node.parent().removeChild(node);
              }
  
              node.parent(this);
          }
  
          this._lParen_ = node;
      }
  
      public PIdentifierList getParameters()
      {
          return this._parameters_;
      }
  
      public void setParameters(PIdentifierList node)
      {
          if(this._parameters_ != null)
          {
              this._parameters_.parent(null);
          }
  
          if(node != null)
          {
              if(node.parent() != null)
              {
                  node.parent().removeChild(node);
              }
  
              node.parent(this);
          }
  
          this._parameters_ = node;
      }
  
      public TRParen getRParen()
      {
          return this._rParen_;
      }
  
      public void setRParen(TRParen node)
      {
          if(this._rParen_ != null)
          {
              this._rParen_.parent(null);
          }
  
          if(node != null)
          {
              if(node.parent() != null)
              {
                  node.parent().removeChild(node);
              }
  
              node.parent(this);
          }
  
          this._rParen_ = node;
      }
  
      @Override
      public String toString()
      {
          return ""
              + toString(this._modelComment_)
              + toString(this._parameterset_)
              + toString(this._name_)
              + toString(this._lParen_)
              + toString(this._parameters_)
              + toString(this._rParen_);
      }
  
      @Override
      void removeChild(@SuppressWarnings("unused") Node child)
      {
          // Remove child
          if(this._modelComment_ == child)
          {
              this._modelComment_ = null;
              return;
          }
  
          if(this._parameterset_ == child)
          {
              this._parameterset_ = null;
              return;
          }
  
          if(this._name_ == child)
          {
              this._name_ = null;
              return;
          }
  
          if(this._lParen_ == child)
          {
              this._lParen_ = null;
              return;
          }
  
          if(this._parameters_ == child)
          {
              this._parameters_ = null;
              return;
          }
  
          if(this._rParen_ == child)
          {
              this._rParen_ = null;
              return;
          }
  
          throw new RuntimeException("Not a child.");
      }
  
      @Override
      void replaceChild(@SuppressWarnings("unused") Node oldChild, @SuppressWarnings("unused") Node newChild)
      {
          // Replace child
          if(this._modelComment_ == oldChild)
          {
              setModelComment((TModelComment) newChild);
              return;
          }
  
          if(this._parameterset_ == oldChild)
          {
              setParameterset((TParameterset) newChild);
              return;
          }
  
          if(this._name_ == oldChild)
          {
              setName((TIdentifier) newChild);
              return;
          }
  
          if(this._lParen_ == oldChild)
          {
              setLParen((TLParen) newChild);
              return;
          }
  
          if(this._parameters_ == oldChild)
          {
              setParameters((PIdentifierList) newChild);
              return;
          }
  
          if(this._rParen_ == oldChild)
          {
              setRParen((TRParen) newChild);
              return;
          }
  
          throw new RuntimeException("Not a child.");
      }
  }
  