Logo Search packages:      
Sourcecode: sablecc version File versions  Download package

X1PUnExp.java

/* This file was generated by SableCC (http://www.sablecc.org/). */

package org.sablecc.sablecc.node;

import org.sablecc.sablecc.analysis.*;

public final class X1PUnExp extends XPUnExp
{
  private XPUnExp _xPUnExp_;
  private PUnExp _pUnExp_;

  public X1PUnExp()
  {}

  public X1PUnExp(
    XPUnExp _xPUnExp_,
    PUnExp _pUnExp_)
  {
    setXPUnExp(_xPUnExp_);
    setPUnExp(_pUnExp_);
  }

  public Object clone()
  {
    throw new RuntimeException("Unsupported Operation");
  }

  public void apply(Switch sw)
  {
    throw new RuntimeException("Switch not supported.");
  }

  public XPUnExp getXPUnExp()
  {
    return _xPUnExp_;
  }

  public void setXPUnExp(XPUnExp node)
  {
    if(_xPUnExp_ != null)
    {
      _xPUnExp_.parent(null);
    }

    if(node != null)
    {
      if(node.parent() != null)
      {
        node.parent().removeChild(node);
      }

      node.parent(this);
    }

    _xPUnExp_ = node;
  }

  public PUnExp getPUnExp()
  {
    return _pUnExp_;
  }

  public void setPUnExp(PUnExp node)
  {
    if(_pUnExp_ != null)
    {
      _pUnExp_.parent(null);
    }

    if(node != null)
    {
      if(node.parent() != null)
      {
        node.parent().removeChild(node);
      }

      node.parent(this);
    }

    _pUnExp_ = node;
  }

  void removeChild(Node child)
  {
    if(_xPUnExp_ == child)
    {
      _xPUnExp_ = null;
    }

    if(_pUnExp_ == child)
    {
      _pUnExp_ = null;
    }
  }

  void replaceChild(Node oldChild, Node newChild)
  {}

  public String toString()
  {
    return "" +
           toString(_xPUnExp_) +
           toString(_pUnExp_);
  }
}

Generated by  Doxygen 1.6.0   Back to index