- java.lang.Object
-
- org.antlr.v4.runtime.tree.AbstractParseTreeVisitor<T>
-
- io.fixprotocol.md.antlr.MarkdownBaseVisitor<T>
-
- Type Parameters:
T- The return type of the visit operation. UseVoidfor operations with no return type.
- All Implemented Interfaces:
MarkdownVisitor<T>,org.antlr.v4.runtime.tree.ParseTreeVisitor<T>
public class MarkdownBaseVisitor<T> extends org.antlr.v4.runtime.tree.AbstractParseTreeVisitor<T> implements MarkdownVisitor<T>
This class provides an empty implementation ofMarkdownVisitor, which can be extended to create a visitor which only needs to handle a subset of the available methods.
-
-
Constructor Summary
Constructors Constructor Description MarkdownBaseVisitor()
-
Method Summary
-
Methods inherited from class org.antlr.v4.runtime.tree.AbstractParseTreeVisitor
aggregateResult, defaultResult, shouldVisitNextChild, visit, visitChildren, visitErrorNode, visitTerminal
-
-
-
-
Method Detail
-
visitDocument
public T visitDocument(MarkdownParser.DocumentContext ctx)
Visit a parse tree produced byMarkdownParser.document().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitDocumentin interfaceMarkdownVisitor<T>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitBlock
public T visitBlock(MarkdownParser.BlockContext ctx)
Visit a parse tree produced byMarkdownParser.block().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitBlockin interfaceMarkdownVisitor<T>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitHeading
public T visitHeading(MarkdownParser.HeadingContext ctx)
Visit a parse tree produced byMarkdownParser.heading().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitHeadingin interfaceMarkdownVisitor<T>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitParagraph
public T visitParagraph(MarkdownParser.ParagraphContext ctx)
Visit a parse tree produced byMarkdownParser.paragraph().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitParagraphin interfaceMarkdownVisitor<T>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitParagraphline
public T visitParagraphline(MarkdownParser.ParagraphlineContext ctx)
Visit a parse tree produced byMarkdownParser.paragraphline().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitParagraphlinein interfaceMarkdownVisitor<T>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitList
public T visitList(MarkdownParser.ListContext ctx)
Visit a parse tree produced byMarkdownParser.list().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitListin interfaceMarkdownVisitor<T>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitListline
public T visitListline(MarkdownParser.ListlineContext ctx)
Visit a parse tree produced byMarkdownParser.listline().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitListlinein interfaceMarkdownVisitor<T>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitBlockquote
public T visitBlockquote(MarkdownParser.BlockquoteContext ctx)
Visit a parse tree produced byMarkdownParser.blockquote().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitBlockquotein interfaceMarkdownVisitor<T>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitQuoteline
public T visitQuoteline(MarkdownParser.QuotelineContext ctx)
Visit a parse tree produced byMarkdownParser.quoteline().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitQuotelinein interfaceMarkdownVisitor<T>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitFencedcodeblock
public T visitFencedcodeblock(MarkdownParser.FencedcodeblockContext ctx)
Visit a parse tree produced byMarkdownParser.fencedcodeblock().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitFencedcodeblockin interfaceMarkdownVisitor<T>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitInfostring
public T visitInfostring(MarkdownParser.InfostringContext ctx)
Visit a parse tree produced byMarkdownParser.infostring().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitInfostringin interfaceMarkdownVisitor<T>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitTable
public T visitTable(MarkdownParser.TableContext ctx)
Visit a parse tree produced byMarkdownParser.table().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitTablein interfaceMarkdownVisitor<T>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitTableheading
public T visitTableheading(MarkdownParser.TableheadingContext ctx)
Visit a parse tree produced byMarkdownParser.tableheading().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitTableheadingin interfaceMarkdownVisitor<T>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitTablerow
public T visitTablerow(MarkdownParser.TablerowContext ctx)
Visit a parse tree produced byMarkdownParser.tablerow().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitTablerowin interfaceMarkdownVisitor<T>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitCell
public T visitCell(MarkdownParser.CellContext ctx)
Visit a parse tree produced byMarkdownParser.cell().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitCellin interfaceMarkdownVisitor<T>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitTabledelimiterrow
public T visitTabledelimiterrow(MarkdownParser.TabledelimiterrowContext ctx)
Visit a parse tree produced byMarkdownParser.tabledelimiterrow().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitTabledelimiterrowin interfaceMarkdownVisitor<T>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
-