Class CSVEventDrivenImporter.RowCSVListener
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 TypeMethodDescriptionvoidEnter a parse tree produced byCSVParser.header().voidEnter a parse tree produced byCSVParser.record().voidExit a parse tree produced by theEmptyFieldlabeled alternative inCSVParser.field().voidExit a parse tree produced byCSVParser.header().voidExit a parse tree produced byCSVParser.record().voidExit a parse tree produced by theStringFieldlabeled alternative inCSVParser.field().voidExit a parse tree produced by theTextFieldlabeled alternative inCSVParser.field().protected abstract voidMethods inherited from class 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:CSVBaseListenerEnter a parse tree produced byCSVParser.header().The default implementation does nothing.
- Specified by:
enterHeaderin interfaceCSVListener- Overrides:
enterHeaderin classCSVBaseListener- Parameters:
ctx- the parse tree
-
exitHeader
Description copied from class:CSVBaseListenerExit a parse tree produced byCSVParser.header().The default implementation does nothing.
- Specified by:
exitHeaderin interfaceCSVListener- Overrides:
exitHeaderin classCSVBaseListener- Parameters:
ctx- the parse tree
-
enterRecord
Description copied from class:CSVBaseListenerEnter a parse tree produced byCSVParser.record().The default implementation does nothing.
- Specified by:
enterRecordin interfaceCSVListener- Overrides:
enterRecordin classCSVBaseListener- Parameters:
ctx- the parse tree
-
exitRecord
Description copied from class:CSVBaseListenerExit a parse tree produced byCSVParser.record().The default implementation does nothing.
- Specified by:
exitRecordin interfaceCSVListener- Overrides:
exitRecordin classCSVBaseListener- Parameters:
ctx- the parse tree
-
exitTextField
Description copied from class:CSVBaseListenerExit a parse tree produced by theTextFieldlabeled alternative inCSVParser.field().The default implementation does nothing.
- Specified by:
exitTextFieldin interfaceCSVListener- Overrides:
exitTextFieldin classCSVBaseListener- Parameters:
ctx- the parse tree
-
exitStringField
Description copied from class:CSVBaseListenerExit a parse tree produced by theStringFieldlabeled alternative inCSVParser.field().The default implementation does nothing.
- Specified by:
exitStringFieldin interfaceCSVListener- Overrides:
exitStringFieldin classCSVBaseListener- Parameters:
ctx- the parse tree
-
exitEmptyField
Description copied from class:CSVBaseListenerExit a parse tree produced by theEmptyFieldlabeled alternative inCSVParser.field().The default implementation does nothing.
- Specified by:
exitEmptyFieldin interfaceCSVListener- Overrides:
exitEmptyFieldin classCSVBaseListener- Parameters:
ctx- the parse tree
-
handleRow
protected abstract void handleRow()
-