Class RegexBaseVisitor<T>
- Type Parameters:
T- The return type of the visit operation. UseVoidfor operations with no return type.
- All Implemented Interfaces:
RegexVisitor<T>,org.antlr.v4.runtime.tree.ParseTreeVisitor<T>
- Direct Known Subclasses:
RegexStringVisitor
RegexVisitor,
which can be extended to create a visitor which only needs to handle a subset
of the available methods.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionVisit a parse tree produced byRegexParser.atom().Visit a parse tree produced byRegexParser.charClass().Visit a parse tree produced byRegexParser.charRange().Visit a parse tree produced byRegexParser.classAtom().Visit a parse tree produced byRegexParser.element().Visit a parse tree produced byRegexParser.expr().Visit a parse tree produced byRegexParser.group().Visit a parse tree produced byRegexParser.quantifier().Visit a parse tree produced byRegexParser.regex().Methods inherited from class org.antlr.v4.runtime.tree.AbstractParseTreeVisitor
aggregateResult, defaultResult, shouldVisitNextChild, visit, visitChildren, visitErrorNode, visitTerminalMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.antlr.v4.runtime.tree.ParseTreeVisitor
visit, visitChildren, visitErrorNode, visitTerminal
-
Constructor Details
-
RegexBaseVisitor
public RegexBaseVisitor()
-
-
Method Details
-
visitRegex
Visit a parse tree produced byRegexParser.regex().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitRegexin interfaceRegexVisitor<T>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitExpr
Visit a parse tree produced byRegexParser.expr().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitExprin interfaceRegexVisitor<T>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitElement
Visit a parse tree produced byRegexParser.element().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitElementin interfaceRegexVisitor<T>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitGroup
Visit a parse tree produced byRegexParser.group().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitGroupin interfaceRegexVisitor<T>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitQuantifier
Visit a parse tree produced byRegexParser.quantifier().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitQuantifierin interfaceRegexVisitor<T>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitAtom
Visit a parse tree produced byRegexParser.atom().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitAtomin interfaceRegexVisitor<T>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitCharClass
Visit a parse tree produced byRegexParser.charClass().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitCharClassin interfaceRegexVisitor<T>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitCharRange
Visit a parse tree produced byRegexParser.charRange().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitCharRangein interfaceRegexVisitor<T>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitClassAtom
Visit a parse tree produced byRegexParser.classAtom().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitClassAtomin interfaceRegexVisitor<T>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-