/* This file was generated by SableCC (http://www.sablecc.org/). */ package net.sf.jame.contextfree.cfdg.node; import net.sf.jame.contextfree.cfdg.analysis.*; @SuppressWarnings("nls") public final class APlusOperator extends POperator { private TPlus _plus_; public APlusOperator() { // Constructor } public APlusOperator( @SuppressWarnings("hiding") TPlus _plus_) { // Constructor setPlus(_plus_); } @Override public Object clone() { return new APlusOperator( cloneNode(this._plus_)); } public void apply(Switch sw) { ((Analysis) sw).caseAPlusOperator(this); } public TPlus getPlus() { return this._plus_; } public void setPlus(TPlus node) { if(this._plus_ != null) { this._plus_.parent(null); } if(node != null) { if(node.parent() != null) { node.parent().removeChild(node); } node.parent(this); } this._plus_ = node; } @Override public String toString() { return "" + toString(this._plus_); } @Override void removeChild(@SuppressWarnings("unused") Node child) { // Remove child if(this._plus_ == child) { this._plus_ = null; return; } throw new RuntimeException("Not a child."); } @Override void replaceChild(@SuppressWarnings("unused") Node oldChild, @SuppressWarnings("unused") Node newChild) { // Replace child if(this._plus_ == oldChild) { setPlus((TPlus) newChild); return; } throw new RuntimeException("Not a child."); } }