
prerna.sablecc2.node.AWholeDecimalDecimal 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 AWholeDecimalDecimal extends PDecimal
{
private PWholeDecimal _wholeDecimal_;
public AWholeDecimalDecimal()
{
// Constructor
}
public AWholeDecimalDecimal(
@SuppressWarnings("hiding") PWholeDecimal _wholeDecimal_)
{
// Constructor
setWholeDecimal(_wholeDecimal_);
}
@Override
public Object clone()
{
return new AWholeDecimalDecimal(
cloneNode(this._wholeDecimal_));
}
@Override
public void apply(Switch sw)
{
((Analysis) sw).caseAWholeDecimalDecimal(this);
}
public PWholeDecimal getWholeDecimal()
{
return this._wholeDecimal_;
}
public void setWholeDecimal(PWholeDecimal node)
{
if(this._wholeDecimal_ != null)
{
this._wholeDecimal_.parent(null);
}
if(node != null)
{
if(node.parent() != null)
{
node.parent().removeChild(node);
}
node.parent(this);
}
this._wholeDecimal_ = node;
}
@Override
public String toString()
{
return ""
+ toString(this._wholeDecimal_);
}
@Override
void removeChild(@SuppressWarnings("unused") Node child)
{
// Remove child
if(this._wholeDecimal_ == child)
{
this._wholeDecimal_ = null;
return;
}
throw new RuntimeException("Not a child.");
}
@Override
void replaceChild(@SuppressWarnings("unused") Node oldChild, @SuppressWarnings("unused") Node newChild)
{
// Replace child
if(this._wholeDecimal_ == oldChild)
{
setWholeDecimal((PWholeDecimal) newChild);
return;
}
throw new RuntimeException("Not a child.");
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy