- 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
private abstract class CSVEventDrivenImporter.RowCSVListener extends CSVBaseListener
-
-
Constructor Summary
Constructors Constructor Description RowCSVListener()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description voidenterHeader(CSVParser.HeaderContext ctx)Enter a parse tree produced byCSVParser.header().voidenterRecord(CSVParser.RecordContext ctx)Enter a parse tree produced byCSVParser.record().voidexitEmptyField(CSVParser.EmptyFieldContext ctx)Exit a parse tree produced by theEmptyFieldlabeled alternative inCSVParser.field().voidexitHeader(CSVParser.HeaderContext ctx)Exit a parse tree produced byCSVParser.header().voidexitRecord(CSVParser.RecordContext ctx)Exit a parse tree produced byCSVParser.record().voidexitStringField(CSVParser.StringFieldContext ctx)Exit a parse tree produced by theStringFieldlabeled alternative inCSVParser.field().voidexitTextField(CSVParser.TextFieldContext ctx)Exit a parse tree produced by theTextFieldlabeled alternative inCSVParser.field().protected abstract voidhandleRow()-
Methods inherited from class org.jgrapht.nio.csv.CSVBaseListener
enterEmptyField, enterEveryRule, enterFile, enterStringField, enterTextField, exitEveryRule, exitFile, visitErrorNode, visitTerminal
-
-
-
-
Method Detail
-
enterHeader
public void enterHeader(CSVParser.HeaderContext ctx)
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
public void exitHeader(CSVParser.HeaderContext ctx)
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
public void enterRecord(CSVParser.RecordContext ctx)
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
public void exitRecord(CSVParser.RecordContext ctx)
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
public void exitTextField(CSVParser.TextFieldContext ctx)
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
public void exitStringField(CSVParser.StringFieldContext ctx)
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
public void exitEmptyField(CSVParser.EmptyFieldContext ctx)
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()
-
-