Package step.core.ql

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

      • OQLFilterVisitor

        public OQLFilterVisitor()
    • Method Detail

      • visitAndExpr

        public step.core.collections.Filter 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<step.core.collections.Filter>
        Overrides:
        visitAndExpr in class OQLBaseVisitor<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 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<step.core.collections.Filter>
        Overrides:
        visitEqualityExpr in class OQLBaseVisitor<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 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<step.core.collections.Filter>
        Overrides:
        visitOrExpr in class OQLBaseVisitor<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 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<step.core.collections.Filter>
        Overrides:
        visitNotExpr in class OQLBaseVisitor<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 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<step.core.collections.Filter>
        Overrides:
        visitParExpr in class OQLBaseVisitor<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 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<step.core.collections.Filter>
        Overrides:
        visitStringAtom in class OQLBaseVisitor<step.core.collections.Filter>
        Parameters:
        ctx - the parse tree
        Returns:
        the visitor result
      • unescapeStringAtom

        protected java.lang.String unescapeStringAtom​(java.lang.String str)