Class RtfParserBaseListener
This class provides an empty implementation of IRtfParserListener, which can be extended to create a listener which only needs to handle a subset of the available methods.
Inheritance
Inherited Members
Namespace: Dangl.TextConverter.Rtf
Assembly: Dangl.TextConverter.dll
Syntax
[CLSCompliant(false)]
public class RtfParserBaseListener : IRtfParserListener, IParseTreeListener
Methods
| Improve this Doc View SourceEnterCompileUnit(RtfParser.CompileUnitContext)
Enter a parse tree produced by compileUnit().
The default implementation does nothing.
Declaration
public virtual void EnterCompileUnit([NotNull] RtfParser.CompileUnitContext context)
Parameters
Type | Name | Description |
---|---|---|
RtfParser.CompileUnitContext | context | The parse tree. |
EnterEveryRule(ParserRuleContext)
Declaration
public virtual void EnterEveryRule([NotNull] ParserRuleContext context)
Parameters
Type | Name | Description |
---|---|---|
Antlr4.Runtime.ParserRuleContext | context |
Remarks
The default implementation does nothing.
EnterFoundPlainText(RtfParser.FoundPlainTextContext)
Enter a parse tree produced by the FoundPlainText
labeled alternative in textDocument().
The default implementation does nothing.
Declaration
public virtual void EnterFoundPlainText([NotNull] RtfParser.FoundPlainTextContext context)
Parameters
Type | Name | Description |
---|---|---|
RtfParser.FoundPlainTextContext | context | The parse tree. |
EnterFoundRtf(RtfParser.FoundRtfContext)
Enter a parse tree produced by the FoundRtf
labeled alternative in textDocument().
The default implementation does nothing.
Declaration
public virtual void EnterFoundRtf([NotNull] RtfParser.FoundRtfContext context)
Parameters
Type | Name | Description |
---|---|---|
RtfParser.FoundRtfContext | context | The parse tree. |
EnterFoundRtfGroup(RtfParser.FoundRtfGroupContext)
Enter a parse tree produced by the FoundRtfGroup
labeled alternative in rtfComponent().
The default implementation does nothing.
Declaration
public virtual void EnterFoundRtfGroup([NotNull] RtfParser.FoundRtfGroupContext context)
Parameters
Type | Name | Description |
---|---|---|
RtfParser.FoundRtfGroupContext | context | The parse tree. |
EnterFoundRtfText(RtfParser.FoundRtfTextContext)
Enter a parse tree produced by the FoundRtfText
labeled alternative in rtfComponent().
The default implementation does nothing.
Declaration
public virtual void EnterFoundRtfText([NotNull] RtfParser.FoundRtfTextContext context)
Parameters
Type | Name | Description |
---|---|---|
RtfParser.FoundRtfTextContext | context | The parse tree. |
EnterPlainTextDocument(RtfParser.PlainTextDocumentContext)
Enter a parse tree produced by plainTextDocument().
The default implementation does nothing.
Declaration
public virtual void EnterPlainTextDocument([NotNull] RtfParser.PlainTextDocumentContext context)
Parameters
Type | Name | Description |
---|---|---|
RtfParser.PlainTextDocumentContext | context | The parse tree. |
EnterRtfComponent(RtfParser.RtfComponentContext)
Enter a parse tree produced by rtfComponent().
The default implementation does nothing.
Declaration
public virtual void EnterRtfComponent([NotNull] RtfParser.RtfComponentContext context)
Parameters
Type | Name | Description |
---|---|---|
RtfParser.RtfComponentContext | context | The parse tree. |
EnterRtfGroup(RtfParser.RtfGroupContext)
Enter a parse tree produced by rtfGroup().
The default implementation does nothing.
Declaration
public virtual void EnterRtfGroup([NotNull] RtfParser.RtfGroupContext context)
Parameters
Type | Name | Description |
---|---|---|
RtfParser.RtfGroupContext | context | The parse tree. |
EnterRtfText(RtfParser.RtfTextContext)
Enter a parse tree produced by rtfText().
The default implementation does nothing.
Declaration
public virtual void EnterRtfText([NotNull] RtfParser.RtfTextContext context)
Parameters
Type | Name | Description |
---|---|---|
RtfParser.RtfTextContext | context | The parse tree. |
EnterRtfTextComponent(RtfParser.RtfTextComponentContext)
Enter a parse tree produced by rtfTextComponent().
The default implementation does nothing.
Declaration
public virtual void EnterRtfTextComponent([NotNull] RtfParser.RtfTextComponentContext context)
Parameters
Type | Name | Description |
---|---|---|
RtfParser.RtfTextComponentContext | context | The parse tree. |
EnterTextDocument(RtfParser.TextDocumentContext)
Enter a parse tree produced by textDocument().
The default implementation does nothing.
Declaration
public virtual void EnterTextDocument([NotNull] RtfParser.TextDocumentContext context)
Parameters
Type | Name | Description |
---|---|---|
RtfParser.TextDocumentContext | context | The parse tree. |
ExitCompileUnit(RtfParser.CompileUnitContext)
Exit a parse tree produced by compileUnit().
The default implementation does nothing.
Declaration
public virtual void ExitCompileUnit([NotNull] RtfParser.CompileUnitContext context)
Parameters
Type | Name | Description |
---|---|---|
RtfParser.CompileUnitContext | context | The parse tree. |
ExitEveryRule(ParserRuleContext)
Declaration
public virtual void ExitEveryRule([NotNull] ParserRuleContext context)
Parameters
Type | Name | Description |
---|---|---|
Antlr4.Runtime.ParserRuleContext | context |
Remarks
The default implementation does nothing.
ExitFoundPlainText(RtfParser.FoundPlainTextContext)
Exit a parse tree produced by the FoundPlainText
labeled alternative in textDocument().
The default implementation does nothing.
Declaration
public virtual void ExitFoundPlainText([NotNull] RtfParser.FoundPlainTextContext context)
Parameters
Type | Name | Description |
---|---|---|
RtfParser.FoundPlainTextContext | context | The parse tree. |
ExitFoundRtf(RtfParser.FoundRtfContext)
Exit a parse tree produced by the FoundRtf
labeled alternative in textDocument().
The default implementation does nothing.
Declaration
public virtual void ExitFoundRtf([NotNull] RtfParser.FoundRtfContext context)
Parameters
Type | Name | Description |
---|---|---|
RtfParser.FoundRtfContext | context | The parse tree. |
ExitFoundRtfGroup(RtfParser.FoundRtfGroupContext)
Exit a parse tree produced by the FoundRtfGroup
labeled alternative in rtfComponent().
The default implementation does nothing.
Declaration
public virtual void ExitFoundRtfGroup([NotNull] RtfParser.FoundRtfGroupContext context)
Parameters
Type | Name | Description |
---|---|---|
RtfParser.FoundRtfGroupContext | context | The parse tree. |
ExitFoundRtfText(RtfParser.FoundRtfTextContext)
Exit a parse tree produced by the FoundRtfText
labeled alternative in rtfComponent().
The default implementation does nothing.
Declaration
public virtual void ExitFoundRtfText([NotNull] RtfParser.FoundRtfTextContext context)
Parameters
Type | Name | Description |
---|---|---|
RtfParser.FoundRtfTextContext | context | The parse tree. |
ExitPlainTextDocument(RtfParser.PlainTextDocumentContext)
Exit a parse tree produced by plainTextDocument().
The default implementation does nothing.
Declaration
public virtual void ExitPlainTextDocument([NotNull] RtfParser.PlainTextDocumentContext context)
Parameters
Type | Name | Description |
---|---|---|
RtfParser.PlainTextDocumentContext | context | The parse tree. |
ExitRtfComponent(RtfParser.RtfComponentContext)
Exit a parse tree produced by rtfComponent().
The default implementation does nothing.
Declaration
public virtual void ExitRtfComponent([NotNull] RtfParser.RtfComponentContext context)
Parameters
Type | Name | Description |
---|---|---|
RtfParser.RtfComponentContext | context | The parse tree. |
ExitRtfGroup(RtfParser.RtfGroupContext)
Exit a parse tree produced by rtfGroup().
The default implementation does nothing.
Declaration
public virtual void ExitRtfGroup([NotNull] RtfParser.RtfGroupContext context)
Parameters
Type | Name | Description |
---|---|---|
RtfParser.RtfGroupContext | context | The parse tree. |
ExitRtfText(RtfParser.RtfTextContext)
Exit a parse tree produced by rtfText().
The default implementation does nothing.
Declaration
public virtual void ExitRtfText([NotNull] RtfParser.RtfTextContext context)
Parameters
Type | Name | Description |
---|---|---|
RtfParser.RtfTextContext | context | The parse tree. |
ExitRtfTextComponent(RtfParser.RtfTextComponentContext)
Exit a parse tree produced by rtfTextComponent().
The default implementation does nothing.
Declaration
public virtual void ExitRtfTextComponent([NotNull] RtfParser.RtfTextComponentContext context)
Parameters
Type | Name | Description |
---|---|---|
RtfParser.RtfTextComponentContext | context | The parse tree. |
ExitTextDocument(RtfParser.TextDocumentContext)
Exit a parse tree produced by textDocument().
The default implementation does nothing.
Declaration
public virtual void ExitTextDocument([NotNull] RtfParser.TextDocumentContext context)
Parameters
Type | Name | Description |
---|---|---|
RtfParser.TextDocumentContext | context | The parse tree. |
VisitErrorNode(IErrorNode)
Declaration
public virtual void VisitErrorNode([NotNull] IErrorNode node)
Parameters
Type | Name | Description |
---|---|---|
Antlr4.Runtime.Tree.IErrorNode | node |
Remarks
The default implementation does nothing.
VisitTerminal(ITerminalNode)
Declaration
public virtual void VisitTerminal([NotNull] ITerminalNode node)
Parameters
Type | Name | Description |
---|---|---|
Antlr4.Runtime.Tree.ITerminalNode | node |
Remarks
The default implementation does nothing.