soot.jimple.parser.node.ACmpeqBinop Maven / Gradle / Ivy
/* This file was generated by SableCC (http://www.sablecc.org/). */
package soot.jimple.parser.node;
import soot.jimple.parser.analysis.*;
@SuppressWarnings("nls")
public final class ACmpeqBinop extends PBinop
{
private TCmpeq _cmpeq_;
public ACmpeqBinop()
{
// Constructor
}
public ACmpeqBinop(
@SuppressWarnings("hiding") TCmpeq _cmpeq_)
{
// Constructor
setCmpeq(_cmpeq_);
}
@Override
public Object clone()
{
return new ACmpeqBinop(
cloneNode(this._cmpeq_));
}
@Override
public void apply(Switch sw)
{
((Analysis) sw).caseACmpeqBinop(this);
}
public TCmpeq getCmpeq()
{
return this._cmpeq_;
}
public void setCmpeq(TCmpeq node)
{
if(this._cmpeq_ != null)
{
this._cmpeq_.parent(null);
}
if(node != null)
{
if(node.parent() != null)
{
node.parent().removeChild(node);
}
node.parent(this);
}
this._cmpeq_ = node;
}
@Override
public String toString()
{
return ""
+ toString(this._cmpeq_);
}
@Override
void removeChild(@SuppressWarnings("unused") Node child)
{
// Remove child
if(this._cmpeq_ == child)
{
this._cmpeq_ = null;
return;
}
throw new RuntimeException("Not a child.");
}
@Override
void replaceChild(@SuppressWarnings("unused") Node oldChild, @SuppressWarnings("unused") Node newChild)
{
// Replace child
if(this._cmpeq_ == oldChild)
{
setCmpeq((TCmpeq) newChild);
return;
}
throw new RuntimeException("Not a child.");
}
}