soot.jimple.parser.node.ADoubleBaseTypeNoName 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 ADoubleBaseTypeNoName extends PBaseTypeNoName
{
private TDouble _double_;
public ADoubleBaseTypeNoName()
{
// Constructor
}
public ADoubleBaseTypeNoName(
@SuppressWarnings("hiding") TDouble _double_)
{
// Constructor
setDouble(_double_);
}
@Override
public Object clone()
{
return new ADoubleBaseTypeNoName(
cloneNode(this._double_));
}
@Override
public void apply(Switch sw)
{
((Analysis) sw).caseADoubleBaseTypeNoName(this);
}
public TDouble getDouble()
{
return this._double_;
}
public void setDouble(TDouble node)
{
if(this._double_ != null)
{
this._double_.parent(null);
}
if(node != null)
{
if(node.parent() != null)
{
node.parent().removeChild(node);
}
node.parent(this);
}
this._double_ = node;
}
@Override
public String toString()
{
return ""
+ toString(this._double_);
}
@Override
void removeChild(@SuppressWarnings("unused") Node child)
{
// Remove child
if(this._double_ == child)
{
this._double_ = null;
return;
}
throw new RuntimeException("Not a child.");
}
@Override
void replaceChild(@SuppressWarnings("unused") Node oldChild, @SuppressWarnings("unused") Node newChild)
{
// Replace child
if(this._double_ == oldChild)
{
setDouble((TDouble) newChild);
return;
}
throw new RuntimeException("Not a child.");
}
}