![JAR search and dependency download from the Maven repository](/logo.png)
org.geolatte.common.cql.node.APointGeometryLiteral 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 APointGeometryLiteral extends PGeometryLiteral
{
private TWktPointLiteral _wktPointLiteral_;
public APointGeometryLiteral()
{
// Constructor
}
public APointGeometryLiteral(
@SuppressWarnings("hiding") TWktPointLiteral _wktPointLiteral_)
{
// Constructor
setWktPointLiteral(_wktPointLiteral_);
}
@Override
public Object clone()
{
return new APointGeometryLiteral(
cloneNode(this._wktPointLiteral_));
}
public void apply(Switch sw)
{
((Analysis) sw).caseAPointGeometryLiteral(this);
}
public TWktPointLiteral getWktPointLiteral()
{
return this._wktPointLiteral_;
}
public void setWktPointLiteral(TWktPointLiteral node)
{
if(this._wktPointLiteral_ != null)
{
this._wktPointLiteral_.parent(null);
}
if(node != null)
{
if(node.parent() != null)
{
node.parent().removeChild(node);
}
node.parent(this);
}
this._wktPointLiteral_ = node;
}
@Override
public String toString()
{
return ""
+ toString(this._wktPointLiteral_);
}
@Override
void removeChild(@SuppressWarnings("unused") Node child)
{
// Remove child
if(this._wktPointLiteral_ == child)
{
this._wktPointLiteral_ = null;
return;
}
throw new RuntimeException("Not a child.");
}
@Override
void replaceChild(@SuppressWarnings("unused") Node oldChild, @SuppressWarnings("unused") Node newChild)
{
// Replace child
if(this._wktPointLiteral_ == oldChild)
{
setWktPointLiteral((TWktPointLiteral) newChild);
return;
}
throw new RuntimeException("Not a child.");
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy