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

X1PPkgNameTail.java

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

package org.sablecc.sablecc.node;

import org.sablecc.sablecc.analysis.*;

public final class X1PPkgNameTail extends XPPkgNameTail
{
  private XPPkgNameTail _xPPkgNameTail_;
  private PPkgNameTail _pPkgNameTail_;

  public X1PPkgNameTail()
  {}

  public X1PPkgNameTail(
    XPPkgNameTail _xPPkgNameTail_,
    PPkgNameTail _pPkgNameTail_)
  {
    setXPPkgNameTail(_xPPkgNameTail_);
    setPPkgNameTail(_pPkgNameTail_);
  }

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

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

  public XPPkgNameTail getXPPkgNameTail()
  {
    return _xPPkgNameTail_;
  }

  public void setXPPkgNameTail(XPPkgNameTail node)
  {
    if(_xPPkgNameTail_ != null)
    {
      _xPPkgNameTail_.parent(null);
    }

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

      node.parent(this);
    }

    _xPPkgNameTail_ = node;
  }

  public PPkgNameTail getPPkgNameTail()
  {
    return _pPkgNameTail_;
  }

  public void setPPkgNameTail(PPkgNameTail node)
  {
    if(_pPkgNameTail_ != null)
    {
      _pPkgNameTail_.parent(null);
    }

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

      node.parent(this);
    }

    _pPkgNameTail_ = node;
  }

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

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

  void replaceChild(Node oldChild, Node newChild)
  {}

  public String toString()
  {
    return "" +
           toString(_xPPkgNameTail_) +
           toString(_pPkgNameTail_);
  }
}

Generated by  Doxygen 1.6.0   Back to index