java.lang.Object
org.jgrapht.nio.csv.CSVBaseListener
org.jgrapht.nio.csv.CSVEventDrivenImporter.RowCSVListener
- All Implemented Interfaces:
org.antlr.v4.runtime.tree.ParseTreeListener
,CSVListener
- Direct Known Subclasses:
CSVEventDrivenImporter.AdjacencyListCSVListener
,CSVEventDrivenImporter.MatrixCSVListener
- Enclosing class:
CSVEventDrivenImporter
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
Enter a parse tree produced byCSVParser.header()
.void
Enter a parse tree produced byCSVParser.record()
.void
Exit a parse tree produced by theEmptyField
labeled alternative inCSVParser.field()
.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()
.protected abstract void
Methods inherited from class org.jgrapht.nio.csv.CSVBaseListener
enterEmptyField, enterEveryRule, enterFile, enterStringField, enterTextField, exitEveryRule, exitFile, visitErrorNode, visitTerminal
-
Field Details
-
row
-
vertices
-
header
protected boolean header
-
-
Constructor Details
-
RowCSVListener
public RowCSVListener()
-
-
Method Details
-
enterHeader
Description copied from class:CSVBaseListener
Enter a parse tree produced byCSVParser.header()
.The default implementation does nothing.
- Specified by:
enterHeader
in interfaceCSVListener
- Overrides:
enterHeader
in classCSVBaseListener
- Parameters:
ctx
- the parse tree
-
exitHeader
Description copied from class:CSVBaseListener
Exit a parse tree produced byCSVParser.header()
.The default implementation does nothing.
- Specified by:
exitHeader
in interfaceCSVListener
- Overrides:
exitHeader
in classCSVBaseListener
- Parameters:
ctx
- the parse tree
-
enterRecord
Description copied from class:CSVBaseListener
Enter a parse tree produced byCSVParser.record()
.The default implementation does nothing.
- Specified by:
enterRecord
in interfaceCSVListener
- Overrides:
enterRecord
in classCSVBaseListener
- Parameters:
ctx
- the parse tree
-
exitRecord
Description copied from class:CSVBaseListener
Exit a parse tree produced byCSVParser.record()
.The default implementation does nothing.
- Specified by:
exitRecord
in interfaceCSVListener
- Overrides:
exitRecord
in classCSVBaseListener
- Parameters:
ctx
- the parse tree
-
exitTextField
Description copied from class:CSVBaseListener
Exit a parse tree produced by theTextField
labeled alternative inCSVParser.field()
.The default implementation does nothing.
- Specified by:
exitTextField
in interfaceCSVListener
- Overrides:
exitTextField
in classCSVBaseListener
- Parameters:
ctx
- the parse tree
-
exitStringField
Description copied from class:CSVBaseListener
Exit a parse tree produced by theStringField
labeled alternative inCSVParser.field()
.The default implementation does nothing.
- Specified by:
exitStringField
in interfaceCSVListener
- Overrides:
exitStringField
in classCSVBaseListener
- Parameters:
ctx
- the parse tree
-
exitEmptyField
Description copied from class:CSVBaseListener
Exit a parse tree produced by theEmptyField
labeled alternative inCSVParser.field()
.The default implementation does nothing.
- Specified by:
exitEmptyField
in interfaceCSVListener
- Overrides:
exitEmptyField
in classCSVBaseListener
- Parameters:
ctx
- the parse tree
-
handleRow
protected abstract void handleRow()
-