/* 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 AArrowOperator extends POperator
{
private TArrow _arrow_;
public AArrowOperator()
{
// Constructor
}
public AArrowOperator(
@SuppressWarnings("hiding") TArrow _arrow_)
{
// Constructor
setArrow(_arrow_);
}
@Override
public Object clone()
{
return new AArrowOperator(
cloneNode(this._arrow_));
}
public void apply(Switch sw)
{
((Analysis) sw).caseAArrowOperator(this);
}
public TArrow getArrow()
{
return this._arrow_;
}
public void setArrow(TArrow node)
{
if(this._arrow_ != null)
{
this._arrow_.parent(null);
}
if(node != null)
{
if(node.parent() != null)
{
node.parent().removeChild(node);
}
node.parent(this);
}
this._arrow_ = node;
}
@Override
public String toString()
{
return ""
+ toString(this._arrow_);
}
@Override
void removeChild(@SuppressWarnings("unused") Node child)
{
// Remove child
if(this._arrow_ == child)
{
this._arrow_ = null;
return;
}
throw new RuntimeException("Not a child.");
}
@Override
void replaceChild(@SuppressWarnings("unused") Node oldChild, @SuppressWarnings("unused") Node newChild)
{
// Replace child
if(this._arrow_ == oldChild)
{
setArrow((TArrow) newChild);
return;
}
throw new RuntimeException("Not a child.");
}
}