Package step.core.ql

Class 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 Detail

      • OQLMongoDBQueryVisitor

        public OQLMongoDBQueryVisitor()
    • Method Detail

      • visitAndExpr

        public org.bson.conversions.Bson visitAndExpr​(OQLParser.AndExprContext ctx)
        Description copied from class: OQLBaseVisitor
        Visit a parse tree produced by the andExpr labeled alternative in OQLParser.expr().

        The default implementation returns the result of calling AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode) on ctx.

        Specified by:
        visitAndExpr in interface OQLVisitor<org.bson.conversions.Bson>
        Overrides:
        visitAndExpr in class OQLBaseVisitor<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 the equalityExpr labeled alternative in OQLParser.expr().

        The default implementation returns the result of calling AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode) on ctx.

        Specified by:
        visitEqualityExpr in interface OQLVisitor<org.bson.conversions.Bson>
        Overrides:
        visitEqualityExpr in class OQLBaseVisitor<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 the orExpr labeled alternative in OQLParser.expr().

        The default implementation returns the result of calling AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode) on ctx.

        Specified by:
        visitOrExpr in interface OQLVisitor<org.bson.conversions.Bson>
        Overrides:
        visitOrExpr in class OQLBaseVisitor<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 the notExpr labeled alternative in OQLParser.expr().

        The default implementation returns the result of calling AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode) on ctx.

        Specified by:
        visitNotExpr in interface OQLVisitor<org.bson.conversions.Bson>
        Overrides:
        visitNotExpr in class OQLBaseVisitor<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 the parExpr labeled alternative in OQLParser.atom().

        The default implementation returns the result of calling AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode) on ctx.

        Specified by:
        visitParExpr in interface OQLVisitor<org.bson.conversions.Bson>
        Overrides:
        visitParExpr in class OQLBaseVisitor<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 the stringAtom labeled alternative in OQLParser.atom().

        The default implementation returns the result of calling AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode) on ctx.

        Specified by:
        visitStringAtom in interface OQLVisitor<org.bson.conversions.Bson>
        Overrides:
        visitStringAtom in class OQLBaseVisitor<org.bson.conversions.Bson>
        Parameters:
        ctx - the parse tree
        Returns:
        the visitor result