Class OQLFilterVisitor
- java.lang.Object
-
- org.antlr.v4.runtime.tree.AbstractParseTreeVisitor<T>
-
- step.core.ql.OQLBaseVisitor<Filter>
-
- step.core.ql.OQLFilterVisitor
-
- All Implemented Interfaces:
org.antlr.v4.runtime.tree.ParseTreeVisitor<Filter>,OQLVisitor<Filter>
public class OQLFilterVisitor extends OQLBaseVisitor<Filter>
-
-
Constructor Summary
Constructors Constructor Description OQLFilterVisitor()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected StringunescapeStringAtom(String str)protected StringunescapeStringIfNecessary(String text1)FiltervisitAndExpr(OQLParser.AndExprContext ctx)Visit a parse tree produced by theandExprlabeled alternative inOQLParser.expr().FiltervisitComparisonExpr(OQLParser.ComparisonExprContext ctx)Visit a parse tree produced by thecomparisonExprlabeled alternative inOQLParser.expr().FiltervisitEqualityExpr(OQLParser.EqualityExprContext ctx)Visit a parse tree produced by theequalityExprlabeled alternative inOQLParser.expr().FiltervisitInExpr(OQLParser.InExprContext ctx)Visit a parse tree produced by theinExprlabeled alternative inOQLParser.expr().FiltervisitNonQuotedStringAtom(OQLParser.NonQuotedStringAtomContext ctx)Visit a parse tree produced by thenonQuotedStringAtomlabeled alternative inOQLParser.atom().FiltervisitNotExpr(OQLParser.NotExprContext ctx)Visit a parse tree produced by thenotExprlabeled alternative inOQLParser.expr().FiltervisitOrExpr(OQLParser.OrExprContext ctx)Visit a parse tree produced by theorExprlabeled alternative inOQLParser.expr().FiltervisitParExpr(OQLParser.ParExprContext ctx)Visit a parse tree produced by theparExprlabeled alternative inOQLParser.atom().FiltervisitStringAtom(OQLParser.StringAtomContext ctx)Visit a parse tree produced by thestringAtomlabeled alternative inOQLParser.atom().-
Methods inherited from class step.core.ql.OQLBaseVisitor
visitAtomExpr, visitParse
-
Methods inherited from class org.antlr.v4.runtime.tree.AbstractParseTreeVisitor
aggregateResult, defaultResult, shouldVisitNextChild, visit, visitChildren, visitErrorNode, visitTerminal
-
-
-
-
Method Detail
-
visitAndExpr
public Filter visitAndExpr(OQLParser.AndExprContext ctx)
Description copied from class:OQLBaseVisitorVisit a parse tree produced by theandExprlabeled alternative inOQLParser.expr().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitAndExprin interfaceOQLVisitor<Filter>- Overrides:
visitAndExprin classOQLBaseVisitor<Filter>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitEqualityExpr
public Filter visitEqualityExpr(OQLParser.EqualityExprContext ctx)
Description copied from class:OQLBaseVisitorVisit a parse tree produced by theequalityExprlabeled alternative inOQLParser.expr().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitEqualityExprin interfaceOQLVisitor<Filter>- Overrides:
visitEqualityExprin classOQLBaseVisitor<Filter>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitComparisonExpr
public Filter visitComparisonExpr(OQLParser.ComparisonExprContext ctx)
Description copied from class:OQLBaseVisitorVisit a parse tree produced by thecomparisonExprlabeled alternative inOQLParser.expr().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitComparisonExprin interfaceOQLVisitor<Filter>- Overrides:
visitComparisonExprin classOQLBaseVisitor<Filter>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitOrExpr
public Filter visitOrExpr(OQLParser.OrExprContext ctx)
Description copied from class:OQLBaseVisitorVisit a parse tree produced by theorExprlabeled alternative inOQLParser.expr().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitOrExprin interfaceOQLVisitor<Filter>- Overrides:
visitOrExprin classOQLBaseVisitor<Filter>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitInExpr
public Filter visitInExpr(OQLParser.InExprContext ctx)
Description copied from class:OQLBaseVisitorVisit a parse tree produced by theinExprlabeled alternative inOQLParser.expr().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitInExprin interfaceOQLVisitor<Filter>- Overrides:
visitInExprin classOQLBaseVisitor<Filter>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitNotExpr
public Filter visitNotExpr(OQLParser.NotExprContext ctx)
Description copied from class:OQLBaseVisitorVisit a parse tree produced by thenotExprlabeled alternative inOQLParser.expr().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitNotExprin interfaceOQLVisitor<Filter>- Overrides:
visitNotExprin classOQLBaseVisitor<Filter>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitParExpr
public Filter visitParExpr(OQLParser.ParExprContext ctx)
Description copied from class:OQLBaseVisitorVisit a parse tree produced by theparExprlabeled alternative inOQLParser.atom().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitParExprin interfaceOQLVisitor<Filter>- Overrides:
visitParExprin classOQLBaseVisitor<Filter>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitNonQuotedStringAtom
public Filter visitNonQuotedStringAtom(OQLParser.NonQuotedStringAtomContext ctx)
Description copied from class:OQLBaseVisitorVisit a parse tree produced by thenonQuotedStringAtomlabeled alternative inOQLParser.atom().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitNonQuotedStringAtomin interfaceOQLVisitor<Filter>- Overrides:
visitNonQuotedStringAtomin classOQLBaseVisitor<Filter>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitStringAtom
public Filter visitStringAtom(OQLParser.StringAtomContext ctx)
Description copied from class:OQLBaseVisitorVisit a parse tree produced by thestringAtomlabeled alternative inOQLParser.atom().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitStringAtomin interfaceOQLVisitor<Filter>- Overrides:
visitStringAtomin classOQLBaseVisitor<Filter>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
-