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

X2PIdListTail.java

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

package org.sablecc.sablecc.node;

import org.sablecc.sablecc.analysis.*;

public final class X2PIdListTail extends XPIdListTail
{
  private PIdListTail _pIdListTail_;

  public X2PIdListTail()
  {}

  public X2PIdListTail(
    PIdListTail _pIdListTail_)
  {
    setPIdListTail(_pIdListTail_);
  }

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

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

  public PIdListTail getPIdListTail()
  {
    return _pIdListTail_;
  }

  public void setPIdListTail(PIdListTail node)
  {
    if(_pIdListTail_ != null)
    {
      _pIdListTail_.parent(null);
    }

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

      node.parent(this);
    }

    _pIdListTail_ = node;
  }

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

  void replaceChild(Node oldChild, Node newChild)
  {}

  public String toString()
  {
    return "" +
           toString(_pIdListTail_);
  }
}

Generated by  Doxygen 1.6.0   Back to index