Class OQLFilterVisitor<T>
- java.lang.Object
-
- org.antlr.v4.runtime.tree.AbstractParseTreeVisitor<T>
-
- step.core.ql.OQLBaseVisitor<Filter<T>>
-
- step.core.ql.OQLFilterVisitor<T>
-
- All Implemented Interfaces:
org.antlr.v4.runtime.tree.ParseTreeVisitor<Filter<T>>,OQLVisitor<Filter<T>>
public class OQLFilterVisitor<T> extends OQLBaseVisitor<Filter<T>>
-
-
Constructor Summary
Constructors Constructor Description OQLFilterVisitor(FilterFactory<T> factory)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected java.lang.StringunescapeStringAtom(java.lang.String str)protected java.lang.StringunescapeStringIfNecessary(java.lang.String text1)Filter<T>visitAndExpr(OQLParser.AndExprContext ctx)Visit a parse tree produced by theandExprlabeled alternative inOQLParser.expr().Filter<T>visitEqualityExpr(OQLParser.EqualityExprContext ctx)Visit a parse tree produced by theequalityExprlabeled alternative inOQLParser.expr().Filter<T>visitNonQuotedStringAtom(OQLParser.NonQuotedStringAtomContext ctx)Visit a parse tree produced by thenonQuotedStringAtomlabeled alternative inOQLParser.atom().Filter<T>visitNotExpr(OQLParser.NotExprContext ctx)Visit a parse tree produced by thenotExprlabeled alternative inOQLParser.expr().Filter<T>visitOrExpr(OQLParser.OrExprContext ctx)Visit a parse tree produced by theorExprlabeled alternative inOQLParser.expr().Filter<T>visitParExpr(OQLParser.ParExprContext ctx)Visit a parse tree produced by theparExprlabeled alternative inOQLParser.atom().Filter<T>visitStringAtom(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
-
-
-
-
Constructor Detail
-
OQLFilterVisitor
public OQLFilterVisitor(FilterFactory<T> factory)
-
-
Method Detail
-
visitAndExpr
public Filter<T> 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<T>- Overrides:
visitAndExprin classOQLBaseVisitor<Filter<T>>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitEqualityExpr
public Filter<T> 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<T>- Overrides:
visitEqualityExprin classOQLBaseVisitor<Filter<T>>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
unescapeStringIfNecessary
protected java.lang.String unescapeStringIfNecessary(java.lang.String text1)
-
visitOrExpr
public Filter<T> 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<T>- Overrides:
visitOrExprin classOQLBaseVisitor<Filter<T>>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitNotExpr
public Filter<T> 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<T>- Overrides:
visitNotExprin classOQLBaseVisitor<Filter<T>>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitParExpr
public Filter<T> 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<T>- Overrides:
visitParExprin classOQLBaseVisitor<Filter<T>>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitNonQuotedStringAtom
public Filter<T> 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<T>- Overrides:
visitNonQuotedStringAtomin classOQLBaseVisitor<Filter<T>>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitStringAtom
public Filter<T> 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<T>- Overrides:
visitStringAtomin classOQLBaseVisitor<Filter<T>>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
unescapeStringAtom
protected java.lang.String unescapeStringAtom(java.lang.String str)
-
-