![JAR search and dependency download from the Maven repository](/logo.png)
org.geolatte.common.cql.node.ADatetimeLiteral Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of geolatte-common Show documentation
Show all versions of geolatte-common Show documentation
This GeoLatte-common library contains the transformer framework and other common classes used by other
GeoLatte modules.
/* This file was generated by SableCC (http://www.sablecc.org/). */
package org.geolatte.common.cql.node;
import org.geolatte.common.cql.analysis.*;
@SuppressWarnings("nls")
public final class ADatetimeLiteral extends PLiteral
{
private PDatetimeLiteral _datetimeLiteral_;
public ADatetimeLiteral()
{
// Constructor
}
public ADatetimeLiteral(
@SuppressWarnings("hiding") PDatetimeLiteral _datetimeLiteral_)
{
// Constructor
setDatetimeLiteral(_datetimeLiteral_);
}
@Override
public Object clone()
{
return new ADatetimeLiteral(
cloneNode(this._datetimeLiteral_));
}
public void apply(Switch sw)
{
((Analysis) sw).caseADatetimeLiteral(this);
}
public PDatetimeLiteral getDatetimeLiteral()
{
return this._datetimeLiteral_;
}
public void setDatetimeLiteral(PDatetimeLiteral node)
{
if(this._datetimeLiteral_ != null)
{
this._datetimeLiteral_.parent(null);
}
if(node != null)
{
if(node.parent() != null)
{
node.parent().removeChild(node);
}
node.parent(this);
}
this._datetimeLiteral_ = node;
}
@Override
public String toString()
{
return ""
+ toString(this._datetimeLiteral_);
}
@Override
void removeChild(@SuppressWarnings("unused") Node child)
{
// Remove child
if(this._datetimeLiteral_ == child)
{
this._datetimeLiteral_ = null;
return;
}
throw new RuntimeException("Not a child.");
}
@Override
void replaceChild(@SuppressWarnings("unused") Node oldChild, @SuppressWarnings("unused") Node newChild)
{
// Replace child
if(this._datetimeLiteral_ == oldChild)
{
setDatetimeLiteral((PDatetimeLiteral) newChild);
return;
}
throw new RuntimeException("Not a child.");
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy