Package net.jazdw.rql

Class RqlBaseVisitor<T>

java.lang.Object
org.antlr.v4.runtime.tree.AbstractParseTreeVisitor<T>
net.jazdw.rql.RqlBaseVisitor<T>
Type Parameters:
T - The return type of the visit operation. Use Void for operations with no return type.
All Implemented Interfaces:
RqlVisitor<T>, org.antlr.v4.runtime.tree.ParseTreeVisitor<T>
Direct Known Subclasses:
ASTGenerator, FunctionVisitor, PredicateVisitor, QueryVisitor, ValueVisitor

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

    • RqlBaseVisitor

      public RqlBaseVisitor()
  • Method Details

    • visitQuery

      public T visitQuery(RqlParser.QueryContext ctx)
      Visit a parse tree produced by RqlParser.query().

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

      Specified by:
      visitQuery in interface RqlVisitor<T>
      Parameters:
      ctx - the parse tree
      Returns:
      the visitor result
    • visitPredicate

      public T visitPredicate(RqlParser.PredicateContext ctx)
      Visit a parse tree produced by the predicate labeled alternative in RqlParser.expression().

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

      Specified by:
      visitPredicate in interface RqlVisitor<T>
      Parameters:
      ctx - the parse tree
      Returns:
      the visitor result
    • visitShortPredicate

      public T visitShortPredicate(RqlParser.ShortPredicateContext ctx)
      Visit a parse tree produced by the shortPredicate labeled alternative in RqlParser.expression().

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

      Specified by:
      visitShortPredicate in interface RqlVisitor<T>
      Parameters:
      ctx - the parse tree
      Returns:
      the visitor result
    • visitOr

      public T visitOr(RqlParser.OrContext ctx)
      Visit a parse tree produced by the or labeled alternative in RqlParser.expression().

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

      Specified by:
      visitOr in interface RqlVisitor<T>
      Parameters:
      ctx - the parse tree
      Returns:
      the visitor result
    • visitAnd

      public T visitAnd(RqlParser.AndContext ctx)
      Visit a parse tree produced by the and labeled alternative in RqlParser.expression().

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

      Specified by:
      visitAnd in interface RqlVisitor<T>
      Parameters:
      ctx - the parse tree
      Returns:
      the visitor result
    • visitFunction

      public T visitFunction(RqlParser.FunctionContext ctx)
      Visit a parse tree produced by the function labeled alternative in RqlParser.expression().

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

      Specified by:
      visitFunction in interface RqlVisitor<T>
      Parameters:
      ctx - the parse tree
      Returns:
      the visitor result
    • visitLogical

      public T visitLogical(RqlParser.LogicalContext ctx)
      Visit a parse tree produced by the logical labeled alternative in RqlParser.expression().

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

      Specified by:
      visitLogical in interface RqlVisitor<T>
      Parameters:
      ctx - the parse tree
      Returns:
      the visitor result
    • visitGroup

      public T visitGroup(RqlParser.GroupContext ctx)
      Visit a parse tree produced by the group labeled alternative in RqlParser.expression().

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

      Specified by:
      visitGroup in interface RqlVisitor<T>
      Parameters:
      ctx - the parse tree
      Returns:
      the visitor result
    • visitFunctionName

      public T visitFunctionName(RqlParser.FunctionNameContext ctx)
      Visit a parse tree produced by RqlParser.functionName().

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

      Specified by:
      visitFunctionName in interface RqlVisitor<T>
      Parameters:
      ctx - the parse tree
      Returns:
      the visitor result
    • visitIdentifier

      public T visitIdentifier(RqlParser.IdentifierContext ctx)
      Visit a parse tree produced by RqlParser.identifier().

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

      Specified by:
      visitIdentifier in interface RqlVisitor<T>
      Parameters:
      ctx - the parse tree
      Returns:
      the visitor result
    • visitValue

      public T visitValue(RqlParser.ValueContext ctx)
      Visit a parse tree produced by RqlParser.value().

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

      Specified by:
      visitValue in interface RqlVisitor<T>
      Parameters:
      ctx - the parse tree
      Returns:
      the visitor result
    • visitTypedValue

      public T visitTypedValue(RqlParser.TypedValueContext ctx)
      Visit a parse tree produced by RqlParser.typedValue().

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

      Specified by:
      visitTypedValue in interface RqlVisitor<T>
      Parameters:
      ctx - the parse tree
      Returns:
      the visitor result
    • visitArrayValue

      public T visitArrayValue(RqlParser.ArrayValueContext ctx)
      Visit a parse tree produced by RqlParser.arrayValue().

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

      Specified by:
      visitArrayValue in interface RqlVisitor<T>
      Parameters:
      ctx - the parse tree
      Returns:
      the visitor result
    • visitLogicalOperator

      public T visitLogicalOperator(RqlParser.LogicalOperatorContext ctx)
      Visit a parse tree produced by RqlParser.logicalOperator().

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

      Specified by:
      visitLogicalOperator in interface RqlVisitor<T>
      Parameters:
      ctx - the parse tree
      Returns:
      the visitor result
    • visitPredicateOperator

      public T visitPredicateOperator(RqlParser.PredicateOperatorContext ctx)
      Visit a parse tree produced by RqlParser.predicateOperator().

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

      Specified by:
      visitPredicateOperator in interface RqlVisitor<T>
      Parameters:
      ctx - the parse tree
      Returns:
      the visitor result
    • visitShortPredicateOperator

      public T visitShortPredicateOperator(RqlParser.ShortPredicateOperatorContext ctx)
      Visit a parse tree produced by RqlParser.shortPredicateOperator().

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

      Specified by:
      visitShortPredicateOperator in interface RqlVisitor<T>
      Parameters:
      ctx - the parse tree
      Returns:
      the visitor result