Package step.core.ql

Class OQLBaseVisitor<T>

  • Type Parameters:
    T - The return type of the visit operation. Use Void for operations with no return type.
    All Implemented Interfaces:
    org.antlr.v4.runtime.tree.ParseTreeVisitor<T>, OQLVisitor<T>
    Direct Known Subclasses:
    OQLFilterVisitor

    public class OQLBaseVisitor<T>
    extends org.antlr.v4.runtime.tree.AbstractParseTreeVisitor<T>
    implements OQLVisitor<T>
    This class provides an empty implementation of OQLVisitor, which can be extended to create a visitor which only needs to handle a subset of the available methods.
    • Constructor Detail

      • OQLBaseVisitor

        public OQLBaseVisitor()
    • Method Detail

      • visitParse

        public T visitParse​(OQLParser.ParseContext ctx)
        Visit a parse tree produced by OQLParser.parse().

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

        Specified by:
        visitParse in interface OQLVisitor<T>
        Parameters:
        ctx - the parse tree
        Returns:
        the visitor result
      • visitNotExpr

        public T visitNotExpr​(OQLParser.NotExprContext ctx)
        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<T>
        Parameters:
        ctx - the parse tree
        Returns:
        the visitor result
      • visitAtomExpr

        public T visitAtomExpr​(OQLParser.AtomExprContext ctx)
        Visit a parse tree produced by the atomExpr 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:
        visitAtomExpr in interface OQLVisitor<T>
        Parameters:
        ctx - the parse tree
        Returns:
        the visitor result
      • visitOrExpr

        public T visitOrExpr​(OQLParser.OrExprContext ctx)
        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<T>
        Parameters:
        ctx - the parse tree
        Returns:
        the visitor result
      • visitEqualityExpr

        public T visitEqualityExpr​(OQLParser.EqualityExprContext ctx)
        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<T>
        Parameters:
        ctx - the parse tree
        Returns:
        the visitor result
      • visitAndExpr

        public T visitAndExpr​(OQLParser.AndExprContext ctx)
        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<T>
        Parameters:
        ctx - the parse tree
        Returns:
        the visitor result
      • visitParExpr

        public T visitParExpr​(OQLParser.ParExprContext ctx)
        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<T>
        Parameters:
        ctx - the parse tree
        Returns:
        the visitor result
      • visitNonQuotedStringAtom

        public T visitNonQuotedStringAtom​(OQLParser.NonQuotedStringAtomContext ctx)
        Visit a parse tree produced by the nonQuotedStringAtom 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:
        visitNonQuotedStringAtom in interface OQLVisitor<T>
        Parameters:
        ctx - the parse tree
        Returns:
        the visitor result
      • visitStringAtom

        public T visitStringAtom​(OQLParser.StringAtomContext ctx)
        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<T>
        Parameters:
        ctx - the parse tree
        Returns:
        the visitor result