Class CSVBaseListener
This class provides an empty implementation of ICSVListener, which can be extended to create a listener which only needs to handle a subset of the available methods.
Inheritance
Namespace: GCore.Antlr.Grammers.Csv
Assembly: Csv.dll
Syntax
public class CSVBaseListener : object, ICSVListener, Antlr4.Runtime.Tree.IParseTreeListener
Methods
| Improve this Doc View SourceEnterCsvFile(CSVParser.CsvFileContext)
Enter a parse tree produced by csvFile().
The default implementation does nothing.
Declaration
public virtual void EnterCsvFile(CSVParser.CsvFileContext context)
Parameters
Type | Name | Description |
---|---|---|
CSVParser.CsvFileContext | context | The parse tree. |
EnterEveryRule(Antlr4.Runtime.ParserRuleContext)
Declaration
public virtual void EnterEveryRule(Antlr4.Runtime.ParserRuleContext context)
Parameters
Type | Name | Description |
---|---|---|
Antlr4.Runtime.ParserRuleContext | context |
Remarks
The default implementation does nothing.
EnterField(CSVParser.FieldContext)
Enter a parse tree produced by field().
The default implementation does nothing.
Declaration
public virtual void EnterField(CSVParser.FieldContext context)
Parameters
Type | Name | Description |
---|---|---|
CSVParser.FieldContext | context | The parse tree. |
EnterHdr(CSVParser.HdrContext)
Enter a parse tree produced by hdr().
The default implementation does nothing.
Declaration
public virtual void EnterHdr(CSVParser.HdrContext context)
Parameters
Type | Name | Description |
---|---|---|
CSVParser.HdrContext | context | The parse tree. |
EnterRow(CSVParser.RowContext)
Enter a parse tree produced by row().
The default implementation does nothing.
Declaration
public virtual void EnterRow(CSVParser.RowContext context)
Parameters
Type | Name | Description |
---|---|---|
CSVParser.RowContext | context | The parse tree. |
ExitCsvFile(CSVParser.CsvFileContext)
Exit a parse tree produced by csvFile().
The default implementation does nothing.
Declaration
public virtual void ExitCsvFile(CSVParser.CsvFileContext context)
Parameters
Type | Name | Description |
---|---|---|
CSVParser.CsvFileContext | context | The parse tree. |
ExitEveryRule(Antlr4.Runtime.ParserRuleContext)
Declaration
public virtual void ExitEveryRule(Antlr4.Runtime.ParserRuleContext context)
Parameters
Type | Name | Description |
---|---|---|
Antlr4.Runtime.ParserRuleContext | context |
Remarks
The default implementation does nothing.
ExitField(CSVParser.FieldContext)
Exit a parse tree produced by field().
The default implementation does nothing.
Declaration
public virtual void ExitField(CSVParser.FieldContext context)
Parameters
Type | Name | Description |
---|---|---|
CSVParser.FieldContext | context | The parse tree. |
ExitHdr(CSVParser.HdrContext)
Exit a parse tree produced by hdr().
The default implementation does nothing.
Declaration
public virtual void ExitHdr(CSVParser.HdrContext context)
Parameters
Type | Name | Description |
---|---|---|
CSVParser.HdrContext | context | The parse tree. |
ExitRow(CSVParser.RowContext)
Exit a parse tree produced by row().
The default implementation does nothing.
Declaration
public virtual void ExitRow(CSVParser.RowContext context)
Parameters
Type | Name | Description |
---|---|---|
CSVParser.RowContext | context | The parse tree. |
VisitErrorNode(Antlr4.Runtime.Tree.IErrorNode)
Declaration
public virtual void VisitErrorNode(Antlr4.Runtime.Tree.IErrorNode node)
Parameters
Type | Name | Description |
---|---|---|
Antlr4.Runtime.Tree.IErrorNode | node |
Remarks
The default implementation does nothing.
VisitTerminal(Antlr4.Runtime.Tree.ITerminalNode)
Declaration
public virtual void VisitTerminal(Antlr4.Runtime.Tree.ITerminalNode node)
Parameters
Type | Name | Description |
---|---|---|
Antlr4.Runtime.Tree.ITerminalNode | node |
Remarks
The default implementation does nothing.