Class CSVBaseVisitor<Result>
This class provides an empty implementation of ICSVVisitor<Result>, which can be extended to create a visitor which only needs to handle a subset of the available methods.
Inheritance
System.Object
CSVBaseVisitor<Result>
Namespace: GCore.Antlr.Grammers.Csv
Assembly: Csv.dll
Syntax
public class CSVBaseVisitor<Result> : AbstractParseTreeVisitor<Result>, ICSVVisitor<Result>, IParseTreeVisitor<Result>
Type Parameters
Name | Description |
---|---|
Result | The return type of the visit operation. |
Methods
| Improve this Doc View SourceVisitCsvFile(CSVParser.CsvFileContext)
Visit a parse tree produced by csvFile().
The default implementation returns the result of calling context
.
Declaration
public virtual Result VisitCsvFile(CSVParser.CsvFileContext context)
Parameters
Type | Name | Description |
---|---|---|
CSVParser.CsvFileContext | context | The parse tree. |
Returns
Type | Description |
---|---|
Result |
VisitField(CSVParser.FieldContext)
Visit a parse tree produced by field().
The default implementation returns the result of calling context
.
Declaration
public virtual Result VisitField(CSVParser.FieldContext context)
Parameters
Type | Name | Description |
---|---|---|
CSVParser.FieldContext | context | The parse tree. |
Returns
Type | Description |
---|---|
Result |
VisitHdr(CSVParser.HdrContext)
Visit a parse tree produced by hdr().
The default implementation returns the result of calling context
.
Declaration
public virtual Result VisitHdr(CSVParser.HdrContext context)
Parameters
Type | Name | Description |
---|---|---|
CSVParser.HdrContext | context | The parse tree. |
Returns
Type | Description |
---|---|
Result |
VisitRow(CSVParser.RowContext)
Visit a parse tree produced by row().
The default implementation returns the result of calling context
.
Declaration
public virtual Result VisitRow(CSVParser.RowContext context)
Parameters
Type | Name | Description |
---|---|---|
CSVParser.RowContext | context | The parse tree. |
Returns
Type | Description |
---|---|
Result |
Implements
IParseTreeVisitor<>