
prerna.sablecc2.node.AFractionDecimalDecimal Maven / Gradle / Ivy
The newest version!
/* This file was generated by SableCC (http://www.sablecc.org/). */
package prerna.sablecc2.node;
import prerna.sablecc2.analysis.*;
@SuppressWarnings("nls")
public final class AFractionDecimalDecimal extends PDecimal
{
private PFractionDecimal _fractionDecimal_;
public AFractionDecimalDecimal()
{
// Constructor
}
public AFractionDecimalDecimal(
@SuppressWarnings("hiding") PFractionDecimal _fractionDecimal_)
{
// Constructor
setFractionDecimal(_fractionDecimal_);
}
@Override
public Object clone()
{
return new AFractionDecimalDecimal(
cloneNode(this._fractionDecimal_));
}
@Override
public void apply(Switch sw)
{
((Analysis) sw).caseAFractionDecimalDecimal(this);
}
public PFractionDecimal getFractionDecimal()
{
return this._fractionDecimal_;
}
public void setFractionDecimal(PFractionDecimal node)
{
if(this._fractionDecimal_ != null)
{
this._fractionDecimal_.parent(null);
}
if(node != null)
{
if(node.parent() != null)
{
node.parent().removeChild(node);
}
node.parent(this);
}
this._fractionDecimal_ = node;
}
@Override
public String toString()
{
return ""
+ toString(this._fractionDecimal_);
}
@Override
void removeChild(@SuppressWarnings("unused") Node child)
{
// Remove child
if(this._fractionDecimal_ == child)
{
this._fractionDecimal_ = null;
return;
}
throw new RuntimeException("Not a child.");
}
@Override
void replaceChild(@SuppressWarnings("unused") Node oldChild, @SuppressWarnings("unused") Node newChild)
{
// Replace child
if(this._fractionDecimal_ == oldChild)
{
setFractionDecimal((PFractionDecimal) newChild);
return;
}
throw new RuntimeException("Not a child.");
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy