Class RegexBaseVisitor<T>

java.lang.Object
org.antlr.v4.runtime.tree.AbstractParseTreeVisitor<T>
mocka.generator.regex.RegexBaseVisitor<T>
Type Parameters:
T - The return type of the visit operation. Use Void for operations with no return type.
All Implemented Interfaces:
RegexVisitor<T>, org.antlr.v4.runtime.tree.ParseTreeVisitor<T>
Direct Known Subclasses:
RegexStringVisitor

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

    • RegexBaseVisitor

      public RegexBaseVisitor()
  • Method Details

    • visitRegex

      public T visitRegex(RegexParser.RegexContext ctx)
      Visit a parse tree produced by RegexParser.regex().

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

      Specified by:
      visitRegex in interface RegexVisitor<T>
      Parameters:
      ctx - the parse tree
      Returns:
      the visitor result
    • visitExpr

      public T visitExpr(RegexParser.ExprContext ctx)
      Visit a parse tree produced by RegexParser.expr().

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

      Specified by:
      visitExpr in interface RegexVisitor<T>
      Parameters:
      ctx - the parse tree
      Returns:
      the visitor result
    • visitElement

      public T visitElement(RegexParser.ElementContext ctx)
      Visit a parse tree produced by RegexParser.element().

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

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

      public T visitGroup(RegexParser.GroupContext ctx)
      Visit a parse tree produced by RegexParser.group().

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

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

      public T visitQuantifier(RegexParser.QuantifierContext ctx)
      Visit a parse tree produced by RegexParser.quantifier().

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

      Specified by:
      visitQuantifier in interface RegexVisitor<T>
      Parameters:
      ctx - the parse tree
      Returns:
      the visitor result
    • visitAtom

      public T visitAtom(RegexParser.AtomContext ctx)
      Visit a parse tree produced by RegexParser.atom().

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

      Specified by:
      visitAtom in interface RegexVisitor<T>
      Parameters:
      ctx - the parse tree
      Returns:
      the visitor result
    • visitCharClass

      public T visitCharClass(RegexParser.CharClassContext ctx)
      Visit a parse tree produced by RegexParser.charClass().

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

      Specified by:
      visitCharClass in interface RegexVisitor<T>
      Parameters:
      ctx - the parse tree
      Returns:
      the visitor result
    • visitCharRange

      public T visitCharRange(RegexParser.CharRangeContext ctx)
      Visit a parse tree produced by RegexParser.charRange().

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

      Specified by:
      visitCharRange in interface RegexVisitor<T>
      Parameters:
      ctx - the parse tree
      Returns:
      the visitor result
    • visitClassAtom

      public T visitClassAtom(RegexParser.ClassAtomContext ctx)
      Visit a parse tree produced by RegexParser.classAtom().

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

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