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 Start extends Node
  {
      private PStart _pStart_;
      private EOF _eof_;
  
      public Start()
      {
          // Empty body
      }
  
      public Start(
          @SuppressWarnings("hiding") PStart _pStart_,
          @SuppressWarnings("hiding") EOF _eof_)
      {
          setPStart(_pStart_);
          setEOF(_eof_);
      }
  
      @Override
      public Object clone()
      {
          return new Start(
              cloneNode(this._pStart_),
              cloneNode(this._eof_));
      }
  
      public void apply(Switch sw)
      {
          ((Analysis) sw).caseStart(this);
      }
  
      public PStart getPStart()
      {
          return this._pStart_;
      }
  
      public void setPStart(PStart node)
      {
          if(this._pStart_ != null)
          {
              this._pStart_.parent(null);
          }
  
          if(node != null)
          {
              if(node.parent() != null)
              {
                  node.parent().removeChild(node);
              }
  
              node.parent(this);
          }
  
          this._pStart_ = node;
      }
  
      public EOF getEOF()
      {
          return this._eof_;
      }
  
      public void setEOF(EOF node)
      {
          if(this._eof_ != null)
          {
              this._eof_.parent(null);
          }
  
          if(node != null)
          {
              if(node.parent() != null)
              {
                  node.parent().removeChild(node);
              }
  
              node.parent(this);
          }
  
          this._eof_ = node;
      }
  
      @Override
      void removeChild(Node child)
      {
          if(this._pStart_ == child)
          {
              this._pStart_ = null;
              return;
          }
  
          if(this._eof_ == child)
          {
              this._eof_ = null;
              return;
          }
  
          throw new RuntimeException("Not a child.");
      }
  
      @Override
      void replaceChild(Node oldChild, Node newChild)
      {
          if(this._pStart_ == oldChild)
          {
              setPStart((PStart) newChild);
              return;
          }
  
          if(this._eof_ == oldChild)
          {
              setEOF((EOF) newChild);
              return;
          }
  
          throw new RuntimeException("Not a child.");
      }
  
      @Override
      public String toString()
      {
          return "" +
              toString(this._pStart_) +
              toString(this._eof_);
      }
  }
  