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 AAltNestedExpressionP5 extends PExpressionP5
  {
      private PExpressionP4 _expressionP4_;
  
      public AAltNestedExpressionP5()
      {
          // Constructor
      }
  
      public AAltNestedExpressionP5(
          @SuppressWarnings("hiding") PExpressionP4 _expressionP4_)
      {
          // Constructor
          setExpressionP4(_expressionP4_);
  
      }
  
      @Override
      public Object clone()
      {
          return new AAltNestedExpressionP5(
              cloneNode(this._expressionP4_));
      }
  
      public void apply(Switch sw)
      {
          ((Analysis) sw).caseAAltNestedExpressionP5(this);
      }
  
      public PExpressionP4 getExpressionP4()
      {
          return this._expressionP4_;
      }
  
      public void setExpressionP4(PExpressionP4 node)
      {
          if(this._expressionP4_ != null)
          {
              this._expressionP4_.parent(null);
          }
  
          if(node != null)
          {
              if(node.parent() != null)
              {
                  node.parent().removeChild(node);
              }
  
              node.parent(this);
          }
  
          this._expressionP4_ = node;
      }
  
      @Override
      public String toString()
      {
          return ""
              + toString(this._expressionP4_);
      }
  
      @Override
      void removeChild(@SuppressWarnings("unused") Node child)
      {
          // Remove child
          if(this._expressionP4_ == child)
          {
              this._expressionP4_ = null;
              return;
          }
  
          throw new RuntimeException("Not a child.");
      }
  
      @Override
      void replaceChild(@SuppressWarnings("unused") Node oldChild, @SuppressWarnings("unused") Node newChild)
      {
          // Replace child
          if(this._expressionP4_ == oldChild)
          {
              setExpressionP4((PExpressionP4) newChild);
              return;
          }
  
          throw new RuntimeException("Not a child.");
      }
  }
  