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 String
unescapeStringAtom(String str)
protected String
unescapeStringIfNecessary(String text1)
Filter<T>
visitAndExpr(OQLParser.AndExprContext ctx)
Visit a parse tree produced by theandExpr
labeled alternative inOQLParser.expr()
.Filter<T>
visitEqualityExpr(OQLParser.EqualityExprContext ctx)
Visit a parse tree produced by theequalityExpr
labeled alternative inOQLParser.expr()
.Filter<T>
visitNonQuotedStringAtom(OQLParser.NonQuotedStringAtomContext ctx)
Visit a parse tree produced by thenonQuotedStringAtom
labeled alternative inOQLParser.atom()
.Filter<T>
visitNotExpr(OQLParser.NotExprContext ctx)
Visit a parse tree produced by thenotExpr
labeled alternative inOQLParser.expr()
.Filter<T>
visitOrExpr(OQLParser.OrExprContext ctx)
Visit a parse tree produced by theorExpr
labeled alternative inOQLParser.expr()
.Filter<T>
visitParExpr(OQLParser.ParExprContext ctx)
Visit a parse tree produced by theparExpr
labeled alternative inOQLParser.atom()
.Filter<T>
visitStringAtom(OQLParser.StringAtomContext ctx)
Visit a parse tree produced by thestringAtom
labeled 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:OQLBaseVisitor
Visit a parse tree produced by theandExpr
labeled alternative inOQLParser.expr()
.The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
onctx
.- Specified by:
visitAndExpr
in interfaceOQLVisitor<T>
- Overrides:
visitAndExpr
in classOQLBaseVisitor<Filter<T>>
- Parameters:
ctx
- the parse tree- Returns:
- the visitor result
-
visitEqualityExpr
public Filter<T> visitEqualityExpr(OQLParser.EqualityExprContext ctx)
Description copied from class:OQLBaseVisitor
Visit a parse tree produced by theequalityExpr
labeled alternative inOQLParser.expr()
.The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
onctx
.- Specified by:
visitEqualityExpr
in interfaceOQLVisitor<T>
- Overrides:
visitEqualityExpr
in classOQLBaseVisitor<Filter<T>>
- Parameters:
ctx
- the parse tree- Returns:
- the visitor result
-
visitOrExpr
public Filter<T> visitOrExpr(OQLParser.OrExprContext ctx)
Description copied from class:OQLBaseVisitor
Visit a parse tree produced by theorExpr
labeled alternative inOQLParser.expr()
.The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
onctx
.- Specified by:
visitOrExpr
in interfaceOQLVisitor<T>
- Overrides:
visitOrExpr
in classOQLBaseVisitor<Filter<T>>
- Parameters:
ctx
- the parse tree- Returns:
- the visitor result
-
visitNotExpr
public Filter<T> visitNotExpr(OQLParser.NotExprContext ctx)
Description copied from class:OQLBaseVisitor
Visit a parse tree produced by thenotExpr
labeled alternative inOQLParser.expr()
.The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
onctx
.- Specified by:
visitNotExpr
in interfaceOQLVisitor<T>
- Overrides:
visitNotExpr
in classOQLBaseVisitor<Filter<T>>
- Parameters:
ctx
- the parse tree- Returns:
- the visitor result
-
visitParExpr
public Filter<T> visitParExpr(OQLParser.ParExprContext ctx)
Description copied from class:OQLBaseVisitor
Visit a parse tree produced by theparExpr
labeled alternative inOQLParser.atom()
.The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
onctx
.- Specified by:
visitParExpr
in interfaceOQLVisitor<T>
- Overrides:
visitParExpr
in classOQLBaseVisitor<Filter<T>>
- Parameters:
ctx
- the parse tree- Returns:
- the visitor result
-
visitNonQuotedStringAtom
public Filter<T> visitNonQuotedStringAtom(OQLParser.NonQuotedStringAtomContext ctx)
Description copied from class:OQLBaseVisitor
Visit a parse tree produced by thenonQuotedStringAtom
labeled alternative inOQLParser.atom()
.The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
onctx
.- Specified by:
visitNonQuotedStringAtom
in interfaceOQLVisitor<T>
- Overrides:
visitNonQuotedStringAtom
in classOQLBaseVisitor<Filter<T>>
- Parameters:
ctx
- the parse tree- Returns:
- the visitor result
-
visitStringAtom
public Filter<T> visitStringAtom(OQLParser.StringAtomContext ctx)
Description copied from class:OQLBaseVisitor
Visit a parse tree produced by thestringAtom
labeled alternative inOQLParser.atom()
.The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
onctx
.- Specified by:
visitStringAtom
in interfaceOQLVisitor<T>
- Overrides:
visitStringAtom
in classOQLBaseVisitor<Filter<T>>
- Parameters:
ctx
- the parse tree- Returns:
- the visitor result
-
-