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