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

AMinusBinOp.java

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

package org.sablecc.sablecc.node;

import java.util.*;
import org.sablecc.sablecc.analysis.*;

public final class AMinusBinOp extends PBinOp
{
  private TMinus _minus_;

  public AMinusBinOp()
  {}

  public AMinusBinOp(
    TMinus _minus_)
  {
    setMinus(_minus_);

  }
  public Object clone()
  {
    return new AMinusBinOp(
             (TMinus) cloneNode(_minus_));
  }

  public void apply(Switch sw)
  {
    ((Analysis) sw).caseAMinusBinOp(this);
  }

  public TMinus getMinus()
  {
    return _minus_;
  }

  public void setMinus(TMinus node)
  {
    if(_minus_ != null)
    {
      _minus_.parent(null);
    }

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

      node.parent(this);
    }

    _minus_ = node;
  }

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

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

  }

  void replaceChild(Node oldChild, Node newChild)
  {
    if(_minus_ == oldChild)
    {
      setMinus((TMinus) newChild);
      return;
    }

  }
}

Generated by  Doxygen 1.6.0   Back to index