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