org.geolatte.common.cql.analysis.ReversedDepthFirstAdapter 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.analysis;
import java.util.*;
import org.geolatte.common.cql.node.*;
public class ReversedDepthFirstAdapter extends AnalysisAdapter
{
public void inStart(Start node)
{
defaultIn(node);
}
public void outStart(Start node)
{
defaultOut(node);
}
public void defaultIn(@SuppressWarnings("unused") Node node)
{
// Do nothing
}
public void defaultOut(@SuppressWarnings("unused") Node node)
{
// Do nothing
}
@Override
public void caseStart(Start node)
{
inStart(node);
node.getEOF().apply(this);
node.getPExpr().apply(this);
outStart(node);
}
public void inAGtExpr(AGtExpr node)
{
defaultIn(node);
}
public void outAGtExpr(AGtExpr node)
{
defaultOut(node);
}
@Override
public void caseAGtExpr(AGtExpr node)
{
inAGtExpr(node);
if(node.getRight() != null)
{
node.getRight().apply(this);
}
if(node.getLeft() != null)
{
node.getLeft().apply(this);
}
outAGtExpr(node);
}
public void inALtExpr(ALtExpr node)
{
defaultIn(node);
}
public void outALtExpr(ALtExpr node)
{
defaultOut(node);
}
@Override
public void caseALtExpr(ALtExpr node)
{
inALtExpr(node);
if(node.getRight() != null)
{
node.getRight().apply(this);
}
if(node.getLeft() != null)
{
node.getLeft().apply(this);
}
outALtExpr(node);
}
public void inAGteExpr(AGteExpr node)
{
defaultIn(node);
}
public void outAGteExpr(AGteExpr node)
{
defaultOut(node);
}
@Override
public void caseAGteExpr(AGteExpr node)
{
inAGteExpr(node);
if(node.getRight() != null)
{
node.getRight().apply(this);
}
if(node.getLeft() != null)
{
node.getLeft().apply(this);
}
outAGteExpr(node);
}
public void inALteExpr(ALteExpr node)
{
defaultIn(node);
}
public void outALteExpr(ALteExpr node)
{
defaultOut(node);
}
@Override
public void caseALteExpr(ALteExpr node)
{
inALteExpr(node);
if(node.getRight() != null)
{
node.getRight().apply(this);
}
if(node.getLeft() != null)
{
node.getLeft().apply(this);
}
outALteExpr(node);
}
public void inAEqExpr(AEqExpr node)
{
defaultIn(node);
}
public void outAEqExpr(AEqExpr node)
{
defaultOut(node);
}
@Override
public void caseAEqExpr(AEqExpr node)
{
inAEqExpr(node);
if(node.getRight() != null)
{
node.getRight().apply(this);
}
if(node.getLeft() != null)
{
node.getLeft().apply(this);
}
outAEqExpr(node);
}
public void inANeqExpr(ANeqExpr node)
{
defaultIn(node);
}
public void outANeqExpr(ANeqExpr node)
{
defaultOut(node);
}
@Override
public void caseANeqExpr(ANeqExpr node)
{
inANeqExpr(node);
if(node.getRight() != null)
{
node.getRight().apply(this);
}
if(node.getLeft() != null)
{
node.getLeft().apply(this);
}
outANeqExpr(node);
}
public void inALikeExpr(ALikeExpr node)
{
defaultIn(node);
}
public void outALikeExpr(ALikeExpr node)
{
defaultOut(node);
}
@Override
public void caseALikeExpr(ALikeExpr node)
{
inALikeExpr(node);
if(node.getRight() != null)
{
node.getRight().apply(this);
}
if(node.getLeft() != null)
{
node.getLeft().apply(this);
}
outALikeExpr(node);
}
public void inANotLikeExpr(ANotLikeExpr node)
{
defaultIn(node);
}
public void outANotLikeExpr(ANotLikeExpr node)
{
defaultOut(node);
}
@Override
public void caseANotLikeExpr(ANotLikeExpr node)
{
inANotLikeExpr(node);
if(node.getRight() != null)
{
node.getRight().apply(this);
}
if(node.getLeft() != null)
{
node.getLeft().apply(this);
}
outANotLikeExpr(node);
}
public void inAIlikeExpr(AIlikeExpr node)
{
defaultIn(node);
}
public void outAIlikeExpr(AIlikeExpr node)
{
defaultOut(node);
}
@Override
public void caseAIlikeExpr(AIlikeExpr node)
{
inAIlikeExpr(node);
if(node.getRight() != null)
{
node.getRight().apply(this);
}
if(node.getLeft() != null)
{
node.getLeft().apply(this);
}
outAIlikeExpr(node);
}
public void inANotIlikeExpr(ANotIlikeExpr node)
{
defaultIn(node);
}
public void outANotIlikeExpr(ANotIlikeExpr node)
{
defaultOut(node);
}
@Override
public void caseANotIlikeExpr(ANotIlikeExpr node)
{
inANotIlikeExpr(node);
if(node.getRight() != null)
{
node.getRight().apply(this);
}
if(node.getLeft() != null)
{
node.getLeft().apply(this);
}
outANotIlikeExpr(node);
}
public void inAIsNullExpr(AIsNullExpr node)
{
defaultIn(node);
}
public void outAIsNullExpr(AIsNullExpr node)
{
defaultOut(node);
}
@Override
public void caseAIsNullExpr(AIsNullExpr node)
{
inAIsNullExpr(node);
if(node.getAttr() != null)
{
node.getAttr().apply(this);
}
outAIsNullExpr(node);
}
public void inAIsNotNullExpr(AIsNotNullExpr node)
{
defaultIn(node);
}
public void outAIsNotNullExpr(AIsNotNullExpr node)
{
defaultOut(node);
}
@Override
public void caseAIsNotNullExpr(AIsNotNullExpr node)
{
inAIsNotNullExpr(node);
if(node.getAttr() != null)
{
node.getAttr().apply(this);
}
outAIsNotNullExpr(node);
}
public void inAOrExpr(AOrExpr node)
{
defaultIn(node);
}
public void outAOrExpr(AOrExpr node)
{
defaultOut(node);
}
@Override
public void caseAOrExpr(AOrExpr node)
{
inAOrExpr(node);
if(node.getRight() != null)
{
node.getRight().apply(this);
}
if(node.getLeft() != null)
{
node.getLeft().apply(this);
}
outAOrExpr(node);
}
public void inAAndExpr(AAndExpr node)
{
defaultIn(node);
}
public void outAAndExpr(AAndExpr node)
{
defaultOut(node);
}
@Override
public void caseAAndExpr(AAndExpr node)
{
inAAndExpr(node);
if(node.getRight() != null)
{
node.getRight().apply(this);
}
if(node.getLeft() != null)
{
node.getLeft().apply(this);
}
outAAndExpr(node);
}
public void inANotExpr(ANotExpr node)
{
defaultIn(node);
}
public void outANotExpr(ANotExpr node)
{
defaultOut(node);
}
@Override
public void caseANotExpr(ANotExpr node)
{
inANotExpr(node);
if(node.getExpr() != null)
{
node.getExpr().apply(this);
}
outANotExpr(node);
}
public void inAExistsExpr(AExistsExpr node)
{
defaultIn(node);
}
public void outAExistsExpr(AExistsExpr node)
{
defaultOut(node);
}
@Override
public void caseAExistsExpr(AExistsExpr node)
{
inAExistsExpr(node);
if(node.getAttr() != null)
{
node.getAttr().apply(this);
}
outAExistsExpr(node);
}
public void inADoesNotExistExpr(ADoesNotExistExpr node)
{
defaultIn(node);
}
public void outADoesNotExistExpr(ADoesNotExistExpr node)
{
defaultOut(node);
}
@Override
public void caseADoesNotExistExpr(ADoesNotExistExpr node)
{
inADoesNotExistExpr(node);
if(node.getAttr() != null)
{
node.getAttr().apply(this);
}
outADoesNotExistExpr(node);
}
public void inABeforeExpr(ABeforeExpr node)
{
defaultIn(node);
}
public void outABeforeExpr(ABeforeExpr node)
{
defaultOut(node);
}
@Override
public void caseABeforeExpr(ABeforeExpr node)
{
inABeforeExpr(node);
if(node.getDateTime() != null)
{
node.getDateTime().apply(this);
}
if(node.getAttr() != null)
{
node.getAttr().apply(this);
}
outABeforeExpr(node);
}
public void inAAfterExpr(AAfterExpr node)
{
defaultIn(node);
}
public void outAAfterExpr(AAfterExpr node)
{
defaultOut(node);
}
@Override
public void caseAAfterExpr(AAfterExpr node)
{
inAAfterExpr(node);
if(node.getDateTime() != null)
{
node.getDateTime().apply(this);
}
if(node.getAttr() != null)
{
node.getAttr().apply(this);
}
outAAfterExpr(node);
}
public void inADuringExpr(ADuringExpr node)
{
defaultIn(node);
}
public void outADuringExpr(ADuringExpr node)
{
defaultOut(node);
}
@Override
public void caseADuringExpr(ADuringExpr node)
{
inADuringExpr(node);
if(node.getTimeSpan() != null)
{
node.getTimeSpan().apply(this);
}
if(node.getAttr() != null)
{
node.getAttr().apply(this);
}
outADuringExpr(node);
}
public void inABeforeOrDuringExpr(ABeforeOrDuringExpr node)
{
defaultIn(node);
}
public void outABeforeOrDuringExpr(ABeforeOrDuringExpr node)
{
defaultOut(node);
}
@Override
public void caseABeforeOrDuringExpr(ABeforeOrDuringExpr node)
{
inABeforeOrDuringExpr(node);
if(node.getTimeSpan() != null)
{
node.getTimeSpan().apply(this);
}
if(node.getAttr() != null)
{
node.getAttr().apply(this);
}
outABeforeOrDuringExpr(node);
}
public void inADuringOrAfterExpr(ADuringOrAfterExpr node)
{
defaultIn(node);
}
public void outADuringOrAfterExpr(ADuringOrAfterExpr node)
{
defaultOut(node);
}
@Override
public void caseADuringOrAfterExpr(ADuringOrAfterExpr node)
{
inADuringOrAfterExpr(node);
if(node.getTimeSpan() != null)
{
node.getTimeSpan().apply(this);
}
if(node.getAttr() != null)
{
node.getAttr().apply(this);
}
outADuringOrAfterExpr(node);
}
public void inAGeoEqualsExpr(AGeoEqualsExpr node)
{
defaultIn(node);
}
public void outAGeoEqualsExpr(AGeoEqualsExpr node)
{
defaultOut(node);
}
@Override
public void caseAGeoEqualsExpr(AGeoEqualsExpr node)
{
inAGeoEqualsExpr(node);
if(node.getRight() != null)
{
node.getRight().apply(this);
}
if(node.getLeft() != null)
{
node.getLeft().apply(this);
}
outAGeoEqualsExpr(node);
}
public void inAIdAttr(AIdAttr node)
{
defaultIn(node);
}
public void outAIdAttr(AIdAttr node)
{
defaultOut(node);
}
@Override
public void caseAIdAttr(AIdAttr node)
{
inAIdAttr(node);
if(node.getIdentifier() != null)
{
node.getIdentifier().apply(this);
}
outAIdAttr(node);
}
public void inACompoundIdAttr(ACompoundIdAttr node)
{
defaultIn(node);
}
public void outACompoundIdAttr(ACompoundIdAttr node)
{
defaultOut(node);
}
@Override
public void caseACompoundIdAttr(ACompoundIdAttr node)
{
inACompoundIdAttr(node);
if(node.getAttr() != null)
{
node.getAttr().apply(this);
}
if(node.getIdentifier() != null)
{
node.getIdentifier().apply(this);
}
outACompoundIdAttr(node);
}
public void inANumericLiteral(ANumericLiteral node)
{
defaultIn(node);
}
public void outANumericLiteral(ANumericLiteral node)
{
defaultOut(node);
}
@Override
public void caseANumericLiteral(ANumericLiteral node)
{
inANumericLiteral(node);
if(node.getNumericLiteral() != null)
{
node.getNumericLiteral().apply(this);
}
outANumericLiteral(node);
}
public void inAStringLiteral(AStringLiteral node)
{
defaultIn(node);
}
public void outAStringLiteral(AStringLiteral node)
{
defaultOut(node);
}
@Override
public void caseAStringLiteral(AStringLiteral node)
{
inAStringLiteral(node);
if(node.getStringLiteral() != null)
{
node.getStringLiteral().apply(this);
}
outAStringLiteral(node);
}
public void inABooleanLiteral(ABooleanLiteral node)
{
defaultIn(node);
}
public void outABooleanLiteral(ABooleanLiteral node)
{
defaultOut(node);
}
@Override
public void caseABooleanLiteral(ABooleanLiteral node)
{
inABooleanLiteral(node);
if(node.getBooleanLiteral() != null)
{
node.getBooleanLiteral().apply(this);
}
outABooleanLiteral(node);
}
public void inADatetimeLiteral(ADatetimeLiteral node)
{
defaultIn(node);
}
public void outADatetimeLiteral(ADatetimeLiteral node)
{
defaultOut(node);
}
@Override
public void caseADatetimeLiteral(ADatetimeLiteral node)
{
inADatetimeLiteral(node);
if(node.getDatetimeLiteral() != null)
{
node.getDatetimeLiteral().apply(this);
}
outADatetimeLiteral(node);
}
public void inATimespanLiteral(ATimespanLiteral node)
{
defaultIn(node);
}
public void outATimespanLiteral(ATimespanLiteral node)
{
defaultOut(node);
}
@Override
public void caseATimespanLiteral(ATimespanLiteral node)
{
inATimespanLiteral(node);
if(node.getTimespanLiteral() != null)
{
node.getTimespanLiteral().apply(this);
}
outATimespanLiteral(node);
}
public void inADefaultNumericLiteral(ADefaultNumericLiteral node)
{
defaultIn(node);
}
public void outADefaultNumericLiteral(ADefaultNumericLiteral node)
{
defaultOut(node);
}
@Override
public void caseADefaultNumericLiteral(ADefaultNumericLiteral node)
{
inADefaultNumericLiteral(node);
if(node.getSignedNumericLiteral() != null)
{
node.getSignedNumericLiteral().apply(this);
}
outADefaultNumericLiteral(node);
}
public void inADefaultStringLiteral(ADefaultStringLiteral node)
{
defaultIn(node);
}
public void outADefaultStringLiteral(ADefaultStringLiteral node)
{
defaultOut(node);
}
@Override
public void caseADefaultStringLiteral(ADefaultStringLiteral node)
{
inADefaultStringLiteral(node);
if(node.getCharacterStringLiteral() != null)
{
node.getCharacterStringLiteral().apply(this);
}
outADefaultStringLiteral(node);
}
public void inATrueBooleanLiteral(ATrueBooleanLiteral node)
{
defaultIn(node);
}
public void outATrueBooleanLiteral(ATrueBooleanLiteral node)
{
defaultOut(node);
}
@Override
public void caseATrueBooleanLiteral(ATrueBooleanLiteral node)
{
inATrueBooleanLiteral(node);
outATrueBooleanLiteral(node);
}
public void inAFalseBooleanLiteral(AFalseBooleanLiteral node)
{
defaultIn(node);
}
public void outAFalseBooleanLiteral(AFalseBooleanLiteral node)
{
defaultOut(node);
}
@Override
public void caseAFalseBooleanLiteral(AFalseBooleanLiteral node)
{
inAFalseBooleanLiteral(node);
outAFalseBooleanLiteral(node);
}
public void inAUnknownBooleanLiteral(AUnknownBooleanLiteral node)
{
defaultIn(node);
}
public void outAUnknownBooleanLiteral(AUnknownBooleanLiteral node)
{
defaultOut(node);
}
@Override
public void caseAUnknownBooleanLiteral(AUnknownBooleanLiteral node)
{
inAUnknownBooleanLiteral(node);
outAUnknownBooleanLiteral(node);
}
public void inADefaultDatetimeLiteral(ADefaultDatetimeLiteral node)
{
defaultIn(node);
}
public void outADefaultDatetimeLiteral(ADefaultDatetimeLiteral node)
{
defaultOut(node);
}
@Override
public void caseADefaultDatetimeLiteral(ADefaultDatetimeLiteral node)
{
inADefaultDatetimeLiteral(node);
if(node.getDatetime() != null)
{
node.getDatetime().apply(this);
}
outADefaultDatetimeLiteral(node);
}
public void inADefaultDurationLiteral(ADefaultDurationLiteral node)
{
defaultIn(node);
}
public void outADefaultDurationLiteral(ADefaultDurationLiteral node)
{
defaultOut(node);
}
@Override
public void caseADefaultDurationLiteral(ADefaultDurationLiteral node)
{
inADefaultDurationLiteral(node);
if(node.getSeconds() != null)
{
node.getSeconds().apply(this);
}
if(node.getMinutes() != null)
{
node.getMinutes().apply(this);
}
if(node.getHours() != null)
{
node.getHours().apply(this);
}
if(node.getDays() != null)
{
node.getDays().apply(this);
}
if(node.getMonths() != null)
{
node.getMonths().apply(this);
}
if(node.getYears() != null)
{
node.getYears().apply(this);
}
outADefaultDurationLiteral(node);
}
public void inAFromToTimespanLiteral(AFromToTimespanLiteral node)
{
defaultIn(node);
}
public void outAFromToTimespanLiteral(AFromToTimespanLiteral node)
{
defaultOut(node);
}
@Override
public void caseAFromToTimespanLiteral(AFromToTimespanLiteral node)
{
inAFromToTimespanLiteral(node);
if(node.getTo() != null)
{
node.getTo().apply(this);
}
if(node.getFrom() != null)
{
node.getFrom().apply(this);
}
outAFromToTimespanLiteral(node);
}
public void inAFromDurationTimespanLiteral(AFromDurationTimespanLiteral node)
{
defaultIn(node);
}
public void outAFromDurationTimespanLiteral(AFromDurationTimespanLiteral node)
{
defaultOut(node);
}
@Override
public void caseAFromDurationTimespanLiteral(AFromDurationTimespanLiteral node)
{
inAFromDurationTimespanLiteral(node);
if(node.getDuration() != null)
{
node.getDuration().apply(this);
}
if(node.getFrom() != null)
{
node.getFrom().apply(this);
}
outAFromDurationTimespanLiteral(node);
}
public void inADurationToTimespanLiteral(ADurationToTimespanLiteral node)
{
defaultIn(node);
}
public void outADurationToTimespanLiteral(ADurationToTimespanLiteral node)
{
defaultOut(node);
}
@Override
public void caseADurationToTimespanLiteral(ADurationToTimespanLiteral node)
{
inADurationToTimespanLiteral(node);
if(node.getTo() != null)
{
node.getTo().apply(this);
}
if(node.getDuration() != null)
{
node.getDuration().apply(this);
}
outADurationToTimespanLiteral(node);
}
public void inAPointGeometryLiteral(APointGeometryLiteral node)
{
defaultIn(node);
}
public void outAPointGeometryLiteral(APointGeometryLiteral node)
{
defaultOut(node);
}
@Override
public void caseAPointGeometryLiteral(APointGeometryLiteral node)
{
inAPointGeometryLiteral(node);
if(node.getWktPointLiteral() != null)
{
node.getWktPointLiteral().apply(this);
}
outAPointGeometryLiteral(node);
}
public void inALineStringGeometryLiteral(ALineStringGeometryLiteral node)
{
defaultIn(node);
}
public void outALineStringGeometryLiteral(ALineStringGeometryLiteral node)
{
defaultOut(node);
}
@Override
public void caseALineStringGeometryLiteral(ALineStringGeometryLiteral node)
{
inALineStringGeometryLiteral(node);
if(node.getWktLineStringLiteral() != null)
{
node.getWktLineStringLiteral().apply(this);
}
outALineStringGeometryLiteral(node);
}
public void inAPolygonGeometryLiteral(APolygonGeometryLiteral node)
{
defaultIn(node);
}
public void outAPolygonGeometryLiteral(APolygonGeometryLiteral node)
{
defaultOut(node);
}
@Override
public void caseAPolygonGeometryLiteral(APolygonGeometryLiteral node)
{
inAPolygonGeometryLiteral(node);
if(node.getWktPolygonLiteral() != null)
{
node.getWktPolygonLiteral().apply(this);
}
outAPolygonGeometryLiteral(node);
}
public void inAMultiPointGeometryLiteral(AMultiPointGeometryLiteral node)
{
defaultIn(node);
}
public void outAMultiPointGeometryLiteral(AMultiPointGeometryLiteral node)
{
defaultOut(node);
}
@Override
public void caseAMultiPointGeometryLiteral(AMultiPointGeometryLiteral node)
{
inAMultiPointGeometryLiteral(node);
if(node.getWktMultiPointLiteral() != null)
{
node.getWktMultiPointLiteral().apply(this);
}
outAMultiPointGeometryLiteral(node);
}
public void inAMultiLineStringGeometryLiteral(AMultiLineStringGeometryLiteral node)
{
defaultIn(node);
}
public void outAMultiLineStringGeometryLiteral(AMultiLineStringGeometryLiteral node)
{
defaultOut(node);
}
@Override
public void caseAMultiLineStringGeometryLiteral(AMultiLineStringGeometryLiteral node)
{
inAMultiLineStringGeometryLiteral(node);
if(node.getWktMultiLineStringLiteral() != null)
{
node.getWktMultiLineStringLiteral().apply(this);
}
outAMultiLineStringGeometryLiteral(node);
}
public void inAMultiPolygonGeometryLiteral(AMultiPolygonGeometryLiteral node)
{
defaultIn(node);
}
public void outAMultiPolygonGeometryLiteral(AMultiPolygonGeometryLiteral node)
{
defaultOut(node);
}
@Override
public void caseAMultiPolygonGeometryLiteral(AMultiPolygonGeometryLiteral node)
{
inAMultiPolygonGeometryLiteral(node);
if(node.getWktMultiPolygonLiteral() != null)
{
node.getWktMultiPolygonLiteral().apply(this);
}
outAMultiPolygonGeometryLiteral(node);
}
public void inAGeometryCollectionGeometryLiteral(AGeometryCollectionGeometryLiteral node)
{
defaultIn(node);
}
public void outAGeometryCollectionGeometryLiteral(AGeometryCollectionGeometryLiteral node)
{
defaultOut(node);
}
@Override
public void caseAGeometryCollectionGeometryLiteral(AGeometryCollectionGeometryLiteral node)
{
inAGeometryCollectionGeometryLiteral(node);
if(node.getWktGeometryCollectionLiteral() != null)
{
node.getWktGeometryCollectionLiteral().apply(this);
}
outAGeometryCollectionGeometryLiteral(node);
}
}