java.lang.Object
org.jgrapht.nio.csv.CSVBaseListener
- All Implemented Interfaces:
org.antlr.v4.runtime.tree.ParseTreeListener
,CSVListener
- Direct Known Subclasses:
CSVEventDrivenImporter.RowCSVListener
This class provides an empty implementation of
CSVListener
,
which can be extended to create a listener which only needs to handle a subset
of the available methods.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
Enter a parse tree produced by theEmptyField
labeled alternative inCSVParser.field()
.void
enterEveryRule
(org.antlr.v4.runtime.ParserRuleContext ctx) void
Enter a parse tree produced byCSVParser.file()
.void
Enter a parse tree produced byCSVParser.header()
.void
Enter a parse tree produced byCSVParser.record()
.void
Enter a parse tree produced by theStringField
labeled alternative inCSVParser.field()
.void
Enter a parse tree produced by theTextField
labeled alternative inCSVParser.field()
.void
Exit a parse tree produced by theEmptyField
labeled alternative inCSVParser.field()
.void
exitEveryRule
(org.antlr.v4.runtime.ParserRuleContext ctx) void
Exit a parse tree produced byCSVParser.file()
.void
Exit a parse tree produced byCSVParser.header()
.void
Exit a parse tree produced byCSVParser.record()
.void
Exit a parse tree produced by theStringField
labeled alternative inCSVParser.field()
.void
Exit a parse tree produced by theTextField
labeled alternative inCSVParser.field()
.void
visitErrorNode
(org.antlr.v4.runtime.tree.ErrorNode node) void
visitTerminal
(org.antlr.v4.runtime.tree.TerminalNode node)
-
Constructor Details
-
CSVBaseListener
CSVBaseListener()
-
-
Method Details
-
enterFile
Enter a parse tree produced byCSVParser.file()
.The default implementation does nothing.
- Specified by:
enterFile
in interfaceCSVListener
- Parameters:
ctx
- the parse tree
-
exitFile
Exit a parse tree produced byCSVParser.file()
.The default implementation does nothing.
- Specified by:
exitFile
in interfaceCSVListener
- Parameters:
ctx
- the parse tree
-
enterHeader
Enter a parse tree produced byCSVParser.header()
.The default implementation does nothing.
- Specified by:
enterHeader
in interfaceCSVListener
- Parameters:
ctx
- the parse tree
-
exitHeader
Exit a parse tree produced byCSVParser.header()
.The default implementation does nothing.
- Specified by:
exitHeader
in interfaceCSVListener
- Parameters:
ctx
- the parse tree
-
enterRecord
Enter a parse tree produced byCSVParser.record()
.The default implementation does nothing.
- Specified by:
enterRecord
in interfaceCSVListener
- Parameters:
ctx
- the parse tree
-
exitRecord
Exit a parse tree produced byCSVParser.record()
.The default implementation does nothing.
- Specified by:
exitRecord
in interfaceCSVListener
- Parameters:
ctx
- the parse tree
-
enterTextField
Enter a parse tree produced by theTextField
labeled alternative inCSVParser.field()
.The default implementation does nothing.
- Specified by:
enterTextField
in interfaceCSVListener
- Parameters:
ctx
- the parse tree
-
exitTextField
Exit a parse tree produced by theTextField
labeled alternative inCSVParser.field()
.The default implementation does nothing.
- Specified by:
exitTextField
in interfaceCSVListener
- Parameters:
ctx
- the parse tree
-
enterStringField
Enter a parse tree produced by theStringField
labeled alternative inCSVParser.field()
.The default implementation does nothing.
- Specified by:
enterStringField
in interfaceCSVListener
- Parameters:
ctx
- the parse tree
-
exitStringField
Exit a parse tree produced by theStringField
labeled alternative inCSVParser.field()
.The default implementation does nothing.
- Specified by:
exitStringField
in interfaceCSVListener
- Parameters:
ctx
- the parse tree
-
enterEmptyField
Enter a parse tree produced by theEmptyField
labeled alternative inCSVParser.field()
.The default implementation does nothing.
- Specified by:
enterEmptyField
in interfaceCSVListener
- Parameters:
ctx
- the parse tree
-
exitEmptyField
Exit a parse tree produced by theEmptyField
labeled alternative inCSVParser.field()
.The default implementation does nothing.
- Specified by:
exitEmptyField
in interfaceCSVListener
- Parameters:
ctx
- the parse tree
-
enterEveryRule
public void enterEveryRule(org.antlr.v4.runtime.ParserRuleContext ctx) The default implementation does nothing.
- Specified by:
enterEveryRule
in interfaceorg.antlr.v4.runtime.tree.ParseTreeListener
-
exitEveryRule
public void exitEveryRule(org.antlr.v4.runtime.ParserRuleContext ctx) The default implementation does nothing.
- Specified by:
exitEveryRule
in interfaceorg.antlr.v4.runtime.tree.ParseTreeListener
-
visitTerminal
public void visitTerminal(org.antlr.v4.runtime.tree.TerminalNode node) The default implementation does nothing.
- Specified by:
visitTerminal
in interfaceorg.antlr.v4.runtime.tree.ParseTreeListener
-
visitErrorNode
public void visitErrorNode(org.antlr.v4.runtime.tree.ErrorNode node) The default implementation does nothing.
- Specified by:
visitErrorNode
in interfaceorg.antlr.v4.runtime.tree.ParseTreeListener
-