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