Class OQLFilterVisitor
- java.lang.Object
-
- org.antlr.v4.runtime.tree.AbstractParseTreeVisitor<T>
-
- step.core.ql.OQLBaseVisitor<step.core.collections.Filter>
-
- step.core.ql.OQLFilterVisitor
-
- All Implemented Interfaces:
org.antlr.v4.runtime.tree.ParseTreeVisitor<step.core.collections.Filter>
,OQLVisitor<step.core.collections.Filter>
public class OQLFilterVisitor extends OQLBaseVisitor<step.core.collections.Filter>
-
-
Constructor Summary
Constructors Constructor Description OQLFilterVisitor()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected java.lang.String
unescapeStringAtom(java.lang.String str)
protected java.lang.String
unescapeStringIfNecessary(java.lang.String text1)
step.core.collections.Filter
visitAndExpr(OQLParser.AndExprContext ctx)
Visit a parse tree produced by theandExpr
labeled alternative inOQLParser.expr()
.step.core.collections.Filter
visitEqualityExpr(OQLParser.EqualityExprContext ctx)
Visit a parse tree produced by theequalityExpr
labeled alternative inOQLParser.expr()
.step.core.collections.Filter
visitNonQuotedStringAtom(OQLParser.NonQuotedStringAtomContext ctx)
Visit a parse tree produced by thenonQuotedStringAtom
labeled alternative inOQLParser.atom()
.step.core.collections.Filter
visitNotExpr(OQLParser.NotExprContext ctx)
Visit a parse tree produced by thenotExpr
labeled alternative inOQLParser.expr()
.step.core.collections.Filter
visitOrExpr(OQLParser.OrExprContext ctx)
Visit a parse tree produced by theorExpr
labeled alternative inOQLParser.expr()
.step.core.collections.Filter
visitParExpr(OQLParser.ParExprContext ctx)
Visit a parse tree produced by theparExpr
labeled alternative inOQLParser.atom()
.step.core.collections.Filter
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
-
-
-
-
Method Detail
-
visitAndExpr
public step.core.collections.Filter 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<step.core.collections.Filter>
- Overrides:
visitAndExpr
in classOQLBaseVisitor<step.core.collections.Filter>
- Parameters:
ctx
- the parse tree- Returns:
- the visitor result
-
visitEqualityExpr
public step.core.collections.Filter 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<step.core.collections.Filter>
- Overrides:
visitEqualityExpr
in classOQLBaseVisitor<step.core.collections.Filter>
- Parameters:
ctx
- the parse tree- Returns:
- the visitor result
-
unescapeStringIfNecessary
protected java.lang.String unescapeStringIfNecessary(java.lang.String text1)
-
visitOrExpr
public step.core.collections.Filter 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<step.core.collections.Filter>
- Overrides:
visitOrExpr
in classOQLBaseVisitor<step.core.collections.Filter>
- Parameters:
ctx
- the parse tree- Returns:
- the visitor result
-
visitNotExpr
public step.core.collections.Filter 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<step.core.collections.Filter>
- Overrides:
visitNotExpr
in classOQLBaseVisitor<step.core.collections.Filter>
- Parameters:
ctx
- the parse tree- Returns:
- the visitor result
-
visitParExpr
public step.core.collections.Filter 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<step.core.collections.Filter>
- Overrides:
visitParExpr
in classOQLBaseVisitor<step.core.collections.Filter>
- Parameters:
ctx
- the parse tree- Returns:
- the visitor result
-
visitNonQuotedStringAtom
public step.core.collections.Filter 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<step.core.collections.Filter>
- Overrides:
visitNonQuotedStringAtom
in classOQLBaseVisitor<step.core.collections.Filter>
- Parameters:
ctx
- the parse tree- Returns:
- the visitor result
-
visitStringAtom
public step.core.collections.Filter 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<step.core.collections.Filter>
- Overrides:
visitStringAtom
in classOQLBaseVisitor<step.core.collections.Filter>
- Parameters:
ctx
- the parse tree- Returns:
- the visitor result
-
unescapeStringAtom
protected java.lang.String unescapeStringAtom(java.lang.String str)
-
-