Class RtfParserBaseVisitor<Result>
This class provides an empty implementation of IRtfParserVisitor<Result>, which can be extended to create a visitor 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 RtfParserBaseVisitor<Result> : AbstractParseTreeVisitor<Result>, IRtfParserVisitor<Result>, IParseTreeVisitor<Result>
Type Parameters
Name | Description |
---|---|
Result | The return type of the visit operation. |
Methods
| Improve this Doc View SourceVisitCompileUnit(RtfParser.CompileUnitContext)
Visit a parse tree produced by compileUnit().
The default implementation returns the result of calling Antlr4.Runtime.Tree.AbstractParseTreeVisitor<Result>.VisitChildren(Antlr4.Runtime.Tree.IRuleNode)
on context
.
Declaration
public virtual Result VisitCompileUnit([NotNull] RtfParser.CompileUnitContext context)
Parameters
Type | Name | Description |
---|---|---|
RtfParser.CompileUnitContext | context | The parse tree. |
Returns
Type | Description |
---|---|
Result |
VisitFoundPlainText(RtfParser.FoundPlainTextContext)
Visit a parse tree produced by the FoundPlainText
labeled alternative in textDocument().
The default implementation returns the result of calling Antlr4.Runtime.Tree.AbstractParseTreeVisitor<Result>.VisitChildren(Antlr4.Runtime.Tree.IRuleNode)
on context
.
Declaration
public virtual Result VisitFoundPlainText([NotNull] RtfParser.FoundPlainTextContext context)
Parameters
Type | Name | Description |
---|---|---|
RtfParser.FoundPlainTextContext | context | The parse tree. |
Returns
Type | Description |
---|---|
Result |
VisitFoundRtf(RtfParser.FoundRtfContext)
Visit a parse tree produced by the FoundRtf
labeled alternative in textDocument().
The default implementation returns the result of calling Antlr4.Runtime.Tree.AbstractParseTreeVisitor<Result>.VisitChildren(Antlr4.Runtime.Tree.IRuleNode)
on context
.
Declaration
public virtual Result VisitFoundRtf([NotNull] RtfParser.FoundRtfContext context)
Parameters
Type | Name | Description |
---|---|---|
RtfParser.FoundRtfContext | context | The parse tree. |
Returns
Type | Description |
---|---|
Result |
VisitFoundRtfGroup(RtfParser.FoundRtfGroupContext)
Visit a parse tree produced by the FoundRtfGroup
labeled alternative in rtfComponent().
The default implementation returns the result of calling Antlr4.Runtime.Tree.AbstractParseTreeVisitor<Result>.VisitChildren(Antlr4.Runtime.Tree.IRuleNode)
on context
.
Declaration
public virtual Result VisitFoundRtfGroup([NotNull] RtfParser.FoundRtfGroupContext context)
Parameters
Type | Name | Description |
---|---|---|
RtfParser.FoundRtfGroupContext | context | The parse tree. |
Returns
Type | Description |
---|---|
Result |
VisitFoundRtfText(RtfParser.FoundRtfTextContext)
Visit a parse tree produced by the FoundRtfText
labeled alternative in rtfComponent().
The default implementation returns the result of calling Antlr4.Runtime.Tree.AbstractParseTreeVisitor<Result>.VisitChildren(Antlr4.Runtime.Tree.IRuleNode)
on context
.
Declaration
public virtual Result VisitFoundRtfText([NotNull] RtfParser.FoundRtfTextContext context)
Parameters
Type | Name | Description |
---|---|---|
RtfParser.FoundRtfTextContext | context | The parse tree. |
Returns
Type | Description |
---|---|
Result |
VisitPlainTextDocument(RtfParser.PlainTextDocumentContext)
Visit a parse tree produced by plainTextDocument().
The default implementation returns the result of calling Antlr4.Runtime.Tree.AbstractParseTreeVisitor<Result>.VisitChildren(Antlr4.Runtime.Tree.IRuleNode)
on context
.
Declaration
public virtual Result VisitPlainTextDocument([NotNull] RtfParser.PlainTextDocumentContext context)
Parameters
Type | Name | Description |
---|---|---|
RtfParser.PlainTextDocumentContext | context | The parse tree. |
Returns
Type | Description |
---|---|
Result |
VisitRtfComponent(RtfParser.RtfComponentContext)
Visit a parse tree produced by rtfComponent().
The default implementation returns the result of calling Antlr4.Runtime.Tree.AbstractParseTreeVisitor<Result>.VisitChildren(Antlr4.Runtime.Tree.IRuleNode)
on context
.
Declaration
public virtual Result VisitRtfComponent([NotNull] RtfParser.RtfComponentContext context)
Parameters
Type | Name | Description |
---|---|---|
RtfParser.RtfComponentContext | context | The parse tree. |
Returns
Type | Description |
---|---|
Result |
VisitRtfGroup(RtfParser.RtfGroupContext)
Visit a parse tree produced by rtfGroup().
The default implementation returns the result of calling Antlr4.Runtime.Tree.AbstractParseTreeVisitor<Result>.VisitChildren(Antlr4.Runtime.Tree.IRuleNode)
on context
.
Declaration
public virtual Result VisitRtfGroup([NotNull] RtfParser.RtfGroupContext context)
Parameters
Type | Name | Description |
---|---|---|
RtfParser.RtfGroupContext | context | The parse tree. |
Returns
Type | Description |
---|---|
Result |
VisitRtfText(RtfParser.RtfTextContext)
Visit a parse tree produced by rtfText().
The default implementation returns the result of calling Antlr4.Runtime.Tree.AbstractParseTreeVisitor<Result>.VisitChildren(Antlr4.Runtime.Tree.IRuleNode)
on context
.
Declaration
public virtual Result VisitRtfText([NotNull] RtfParser.RtfTextContext context)
Parameters
Type | Name | Description |
---|---|---|
RtfParser.RtfTextContext | context | The parse tree. |
Returns
Type | Description |
---|---|
Result |
VisitRtfTextComponent(RtfParser.RtfTextComponentContext)
Visit a parse tree produced by rtfTextComponent().
The default implementation returns the result of calling Antlr4.Runtime.Tree.AbstractParseTreeVisitor<Result>.VisitChildren(Antlr4.Runtime.Tree.IRuleNode)
on context
.
Declaration
public virtual Result VisitRtfTextComponent([NotNull] RtfParser.RtfTextComponentContext context)
Parameters
Type | Name | Description |
---|---|---|
RtfParser.RtfTextComponentContext | context | The parse tree. |
Returns
Type | Description |
---|---|
Result |
VisitTextDocument(RtfParser.TextDocumentContext)
Visit a parse tree produced by textDocument().
The default implementation returns the result of calling Antlr4.Runtime.Tree.AbstractParseTreeVisitor<Result>.VisitChildren(Antlr4.Runtime.Tree.IRuleNode)
on context
.
Declaration
public virtual Result VisitTextDocument([NotNull] RtfParser.TextDocumentContext context)
Parameters
Type | Name | Description |
---|---|---|
RtfParser.TextDocumentContext | context | The parse tree. |
Returns
Type | Description |
---|---|
Result |