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

X2PStateListTail.java

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

package org.sablecc.sablecc.node;

import org.sablecc.sablecc.analysis.*;

public final class X2PStateListTail extends XPStateListTail
{
  private PStateListTail _pStateListTail_;

  public X2PStateListTail()
  {}

  public X2PStateListTail(
    PStateListTail _pStateListTail_)
  {
    setPStateListTail(_pStateListTail_);
  }

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

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

  public PStateListTail getPStateListTail()
  {
    return _pStateListTail_;
  }

  public void setPStateListTail(PStateListTail node)
  {
    if(_pStateListTail_ != null)
    {
      _pStateListTail_.parent(null);
    }

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

      node.parent(this);
    }

    _pStateListTail_ = node;
  }

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

  void replaceChild(Node oldChild, Node newChild)
  {}

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

Generated by  Doxygen 1.6.0   Back to index