- java.lang.Object
-
- io.fixprotocol.md.antlr.MarkdownEventSource
-
- All Implemented Interfaces:
MarkdownListener,org.antlr.v4.runtime.tree.ParseTreeListener
public class MarkdownEventSource extends Object implements MarkdownListener
Generates events for document consumers- Author:
- Don Mendelson
-
-
Constructor Summary
Constructors Constructor Description MarkdownEventSource(Consumer<? super GraphContext> contextConsumer)
-
Method Summary
-
-
-
Constructor Detail
-
MarkdownEventSource
public MarkdownEventSource(Consumer<? super GraphContext> contextConsumer)
-
-
Method Detail
-
enterBlock
public void enterBlock(MarkdownParser.BlockContext ctx)
Description copied from interface:MarkdownListenerEnter a parse tree produced byMarkdownParser.block().- Specified by:
enterBlockin interfaceMarkdownListener- Parameters:
ctx- the parse tree
-
enterBlockquote
public void enterBlockquote(MarkdownParser.BlockquoteContext ctx)
Description copied from interface:MarkdownListenerEnter a parse tree produced byMarkdownParser.blockquote().- Specified by:
enterBlockquotein interfaceMarkdownListener- Parameters:
ctx- the parse tree
-
enterCell
public void enterCell(MarkdownParser.CellContext ctx)
Description copied from interface:MarkdownListenerEnter a parse tree produced byMarkdownParser.cell().- Specified by:
enterCellin interfaceMarkdownListener- Parameters:
ctx- the parse tree
-
enterDocument
public void enterDocument(MarkdownParser.DocumentContext ctx)
Description copied from interface:MarkdownListenerEnter a parse tree produced byMarkdownParser.document().- Specified by:
enterDocumentin interfaceMarkdownListener- Parameters:
ctx- the parse tree
-
enterEveryRule
public void enterEveryRule(org.antlr.v4.runtime.ParserRuleContext ctx)
- Specified by:
enterEveryRulein interfaceorg.antlr.v4.runtime.tree.ParseTreeListener
-
enterFencedcodeblock
public void enterFencedcodeblock(MarkdownParser.FencedcodeblockContext ctx)
Description copied from interface:MarkdownListenerEnter a parse tree produced byMarkdownParser.fencedcodeblock().- Specified by:
enterFencedcodeblockin interfaceMarkdownListener- Parameters:
ctx- the parse tree
-
enterHeading
public void enterHeading(MarkdownParser.HeadingContext ctx)
Description copied from interface:MarkdownListenerEnter a parse tree produced byMarkdownParser.heading().- Specified by:
enterHeadingin interfaceMarkdownListener- Parameters:
ctx- the parse tree
-
enterInfostring
public void enterInfostring(MarkdownParser.InfostringContext ctx)
Description copied from interface:MarkdownListenerEnter a parse tree produced byMarkdownParser.infostring().- Specified by:
enterInfostringin interfaceMarkdownListener- Parameters:
ctx- the parse tree
-
enterList
public void enterList(MarkdownParser.ListContext ctx)
Description copied from interface:MarkdownListenerEnter a parse tree produced byMarkdownParser.list().- Specified by:
enterListin interfaceMarkdownListener- Parameters:
ctx- the parse tree
-
enterListline
public void enterListline(MarkdownParser.ListlineContext ctx)
Description copied from interface:MarkdownListenerEnter a parse tree produced byMarkdownParser.listline().- Specified by:
enterListlinein interfaceMarkdownListener- Parameters:
ctx- the parse tree
-
enterParagraph
public void enterParagraph(MarkdownParser.ParagraphContext ctx)
Description copied from interface:MarkdownListenerEnter a parse tree produced byMarkdownParser.paragraph().- Specified by:
enterParagraphin interfaceMarkdownListener- Parameters:
ctx- the parse tree
-
enterParagraphline
public void enterParagraphline(MarkdownParser.ParagraphlineContext ctx)
Description copied from interface:MarkdownListenerEnter a parse tree produced byMarkdownParser.paragraphline().- Specified by:
enterParagraphlinein interfaceMarkdownListener- Parameters:
ctx- the parse tree
-
enterQuoteline
public void enterQuoteline(MarkdownParser.QuotelineContext ctx)
Description copied from interface:MarkdownListenerEnter a parse tree produced byMarkdownParser.quoteline().- Specified by:
enterQuotelinein interfaceMarkdownListener- Parameters:
ctx- the parse tree
-
enterTable
public void enterTable(MarkdownParser.TableContext ctx)
Description copied from interface:MarkdownListenerEnter a parse tree produced byMarkdownParser.table().- Specified by:
enterTablein interfaceMarkdownListener- Parameters:
ctx- the parse tree
-
enterTabledelimiterrow
public void enterTabledelimiterrow(MarkdownParser.TabledelimiterrowContext ctx)
Description copied from interface:MarkdownListenerEnter a parse tree produced byMarkdownParser.tabledelimiterrow().- Specified by:
enterTabledelimiterrowin interfaceMarkdownListener- Parameters:
ctx- the parse tree
-
enterTableheading
public void enterTableheading(MarkdownParser.TableheadingContext ctx)
Description copied from interface:MarkdownListenerEnter a parse tree produced byMarkdownParser.tableheading().- Specified by:
enterTableheadingin interfaceMarkdownListener- Parameters:
ctx- the parse tree
-
enterTablerow
public void enterTablerow(MarkdownParser.TablerowContext ctx)
Description copied from interface:MarkdownListenerEnter a parse tree produced byMarkdownParser.tablerow().- Specified by:
enterTablerowin interfaceMarkdownListener- Parameters:
ctx- the parse tree
-
exitBlock
public void exitBlock(MarkdownParser.BlockContext ctx)
Description copied from interface:MarkdownListenerExit a parse tree produced byMarkdownParser.block().- Specified by:
exitBlockin interfaceMarkdownListener- Parameters:
ctx- the parse tree
-
exitBlockquote
public void exitBlockquote(MarkdownParser.BlockquoteContext ctx)
Description copied from interface:MarkdownListenerExit a parse tree produced byMarkdownParser.blockquote().- Specified by:
exitBlockquotein interfaceMarkdownListener- Parameters:
ctx- the parse tree
-
exitCell
public void exitCell(MarkdownParser.CellContext ctx)
Description copied from interface:MarkdownListenerExit a parse tree produced byMarkdownParser.cell().- Specified by:
exitCellin interfaceMarkdownListener- Parameters:
ctx- the parse tree
-
exitDocument
public void exitDocument(MarkdownParser.DocumentContext ctx)
Description copied from interface:MarkdownListenerExit a parse tree produced byMarkdownParser.document().- Specified by:
exitDocumentin interfaceMarkdownListener- Parameters:
ctx- the parse tree
-
exitEveryRule
public void exitEveryRule(org.antlr.v4.runtime.ParserRuleContext ctx)
- Specified by:
exitEveryRulein interfaceorg.antlr.v4.runtime.tree.ParseTreeListener
-
exitFencedcodeblock
public void exitFencedcodeblock(MarkdownParser.FencedcodeblockContext ctx)
Description copied from interface:MarkdownListenerExit a parse tree produced byMarkdownParser.fencedcodeblock().- Specified by:
exitFencedcodeblockin interfaceMarkdownListener- Parameters:
ctx- the parse tree
-
exitHeading
public void exitHeading(MarkdownParser.HeadingContext ctx)
Description copied from interface:MarkdownListenerExit a parse tree produced byMarkdownParser.heading().- Specified by:
exitHeadingin interfaceMarkdownListener- Parameters:
ctx- the parse tree
-
exitInfostring
public void exitInfostring(MarkdownParser.InfostringContext ctx)
Description copied from interface:MarkdownListenerExit a parse tree produced byMarkdownParser.infostring().- Specified by:
exitInfostringin interfaceMarkdownListener- Parameters:
ctx- the parse tree
-
exitList
public void exitList(MarkdownParser.ListContext ctx)
Description copied from interface:MarkdownListenerExit a parse tree produced byMarkdownParser.list().- Specified by:
exitListin interfaceMarkdownListener- Parameters:
ctx- the parse tree
-
exitListline
public void exitListline(MarkdownParser.ListlineContext ctx)
Description copied from interface:MarkdownListenerExit a parse tree produced byMarkdownParser.listline().- Specified by:
exitListlinein interfaceMarkdownListener- Parameters:
ctx- the parse tree
-
exitParagraph
public void exitParagraph(MarkdownParser.ParagraphContext ctx)
Description copied from interface:MarkdownListenerExit a parse tree produced byMarkdownParser.paragraph().- Specified by:
exitParagraphin interfaceMarkdownListener- Parameters:
ctx- the parse tree
-
exitParagraphline
public void exitParagraphline(MarkdownParser.ParagraphlineContext ctx)
Description copied from interface:MarkdownListenerExit a parse tree produced byMarkdownParser.paragraphline().- Specified by:
exitParagraphlinein interfaceMarkdownListener- Parameters:
ctx- the parse tree
-
exitQuoteline
public void exitQuoteline(MarkdownParser.QuotelineContext ctx)
Description copied from interface:MarkdownListenerExit a parse tree produced byMarkdownParser.quoteline().- Specified by:
exitQuotelinein interfaceMarkdownListener- Parameters:
ctx- the parse tree
-
exitTable
public void exitTable(MarkdownParser.TableContext ctx)
Description copied from interface:MarkdownListenerExit a parse tree produced byMarkdownParser.table().- Specified by:
exitTablein interfaceMarkdownListener- Parameters:
ctx- the parse tree
-
exitTabledelimiterrow
public void exitTabledelimiterrow(MarkdownParser.TabledelimiterrowContext ctx)
Description copied from interface:MarkdownListenerExit a parse tree produced byMarkdownParser.tabledelimiterrow().- Specified by:
exitTabledelimiterrowin interfaceMarkdownListener- Parameters:
ctx- the parse tree
-
exitTableheading
public void exitTableheading(MarkdownParser.TableheadingContext ctx)
Description copied from interface:MarkdownListenerExit a parse tree produced byMarkdownParser.tableheading().- Specified by:
exitTableheadingin interfaceMarkdownListener- Parameters:
ctx- the parse tree
-
exitTablerow
public void exitTablerow(MarkdownParser.TablerowContext ctx)
Description copied from interface:MarkdownListenerExit a parse tree produced byMarkdownParser.tablerow().- Specified by:
exitTablerowin interfaceMarkdownListener- Parameters:
ctx- the parse tree
-
visitErrorNode
public void visitErrorNode(org.antlr.v4.runtime.tree.ErrorNode node)
- Specified by:
visitErrorNodein interfaceorg.antlr.v4.runtime.tree.ParseTreeListener
-
visitTerminal
public void visitTerminal(org.antlr.v4.runtime.tree.TerminalNode node)
- Specified by:
visitTerminalin interfaceorg.antlr.v4.runtime.tree.ParseTreeListener
-
-