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 ATupleType extends PTupleType
  {
      private TLCurlyBracket _lCurlyBracket_;
      private PTupleTypeSlot _tupleTypeSlot_;
      private PTupleTypeSlotTail _tupleTypeSlotTail_;
      private TRCurlyBracket _rCurlyBracket_;
  
      public ATupleType()
      {
          // Constructor
      }
  
      public ATupleType(
          @SuppressWarnings("hiding") TLCurlyBracket _lCurlyBracket_,
          @SuppressWarnings("hiding") PTupleTypeSlot _tupleTypeSlot_,
          @SuppressWarnings("hiding") PTupleTypeSlotTail _tupleTypeSlotTail_,
          @SuppressWarnings("hiding") TRCurlyBracket _rCurlyBracket_)
      {
          // Constructor
          setLCurlyBracket(_lCurlyBracket_);
  
          setTupleTypeSlot(_tupleTypeSlot_);
  
          setTupleTypeSlotTail(_tupleTypeSlotTail_);
  
          setRCurlyBracket(_rCurlyBracket_);
  
      }
  
      @Override
      public Object clone()
      {
          return new ATupleType(
              cloneNode(this._lCurlyBracket_),
              cloneNode(this._tupleTypeSlot_),
              cloneNode(this._tupleTypeSlotTail_),
              cloneNode(this._rCurlyBracket_));
      }
  
      public void apply(Switch sw)
      {
          ((Analysis) sw).caseATupleType(this);
      }
  
      public TLCurlyBracket getLCurlyBracket()
      {
          return this._lCurlyBracket_;
      }
  
      public void setLCurlyBracket(TLCurlyBracket node)
      {
          if(this._lCurlyBracket_ != null)
          {
              this._lCurlyBracket_.parent(null);
          }
  
          if(node != null)
          {
              if(node.parent() != null)
              {
                  node.parent().removeChild(node);
              }
  
              node.parent(this);
          }
  
          this._lCurlyBracket_ = node;
      }
  
      public PTupleTypeSlot getTupleTypeSlot()
      {
          return this._tupleTypeSlot_;
      }
  
      public void setTupleTypeSlot(PTupleTypeSlot node)
      {
          if(this._tupleTypeSlot_ != null)
          {
              this._tupleTypeSlot_.parent(null);
          }
  
          if(node != null)
          {
              if(node.parent() != null)
              {
                  node.parent().removeChild(node);
              }
  
              node.parent(this);
          }
  
          this._tupleTypeSlot_ = node;
      }
  
      public PTupleTypeSlotTail getTupleTypeSlotTail()
      {
          return this._tupleTypeSlotTail_;
      }
  
      public void setTupleTypeSlotTail(PTupleTypeSlotTail node)
      {
          if(this._tupleTypeSlotTail_ != null)
          {
              this._tupleTypeSlotTail_.parent(null);
          }
  
          if(node != null)
          {
              if(node.parent() != null)
              {
                  node.parent().removeChild(node);
              }
  
              node.parent(this);
          }
  
          this._tupleTypeSlotTail_ = node;
      }
  
      public TRCurlyBracket getRCurlyBracket()
      {
          return this._rCurlyBracket_;
      }
  
      public void setRCurlyBracket(TRCurlyBracket node)
      {
          if(this._rCurlyBracket_ != null)
          {
              this._rCurlyBracket_.parent(null);
          }
  
          if(node != null)
          {
              if(node.parent() != null)
              {
                  node.parent().removeChild(node);
              }
  
              node.parent(this);
          }
  
          this._rCurlyBracket_ = node;
      }
  
      @Override
      public String toString()
      {
          return ""
              + toString(this._lCurlyBracket_)
              + toString(this._tupleTypeSlot_)
              + toString(this._tupleTypeSlotTail_)
              + toString(this._rCurlyBracket_);
      }
  
      @Override
      void removeChild(@SuppressWarnings("unused") Node child)
      {
          // Remove child
          if(this._lCurlyBracket_ == child)
          {
              this._lCurlyBracket_ = null;
              return;
          }
  
          if(this._tupleTypeSlot_ == child)
          {
              this._tupleTypeSlot_ = null;
              return;
          }
  
          if(this._tupleTypeSlotTail_ == child)
          {
              this._tupleTypeSlotTail_ = null;
              return;
          }
  
          if(this._rCurlyBracket_ == child)
          {
              this._rCurlyBracket_ = null;
              return;
          }
  
          throw new RuntimeException("Not a child.");
      }
  
      @Override
      void replaceChild(@SuppressWarnings("unused") Node oldChild, @SuppressWarnings("unused") Node newChild)
      {
          // Replace child
          if(this._lCurlyBracket_ == oldChild)
          {
              setLCurlyBracket((TLCurlyBracket) newChild);
              return;
          }
  
          if(this._tupleTypeSlot_ == oldChild)
          {
              setTupleTypeSlot((PTupleTypeSlot) newChild);
              return;
          }
  
          if(this._tupleTypeSlotTail_ == oldChild)
          {
              setTupleTypeSlotTail((PTupleTypeSlotTail) newChild);
              return;
          }
  
          if(this._rCurlyBracket_ == oldChild)
          {
              setRCurlyBracket((TRCurlyBracket) newChild);
              return;
          }
  
          throw new RuntimeException("Not a child.");
      }
  }
  