- 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 void
enterHeader(CSVParser.HeaderContext ctx)
Enter a parse tree produced byCSVParser.header()
.void
enterRecord(CSVParser.RecordContext ctx)
Enter a parse tree produced byCSVParser.record()
.void
exitEmptyField(CSVParser.EmptyFieldContext ctx)
Exit a parse tree produced by theEmptyField
labeled alternative inCSVParser.field()
.void
exitHeader(CSVParser.HeaderContext ctx)
Exit a parse tree produced byCSVParser.header()
.void
exitRecord(CSVParser.RecordContext ctx)
Exit a parse tree produced byCSVParser.record()
.void
exitStringField(CSVParser.StringFieldContext ctx)
Exit a parse tree produced by theStringField
labeled alternative inCSVParser.field()
.void
exitTextField(CSVParser.TextFieldContext ctx)
Exit a parse tree produced by theTextField
labeled alternative inCSVParser.field()
.protected abstract void
handleRow()
-
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: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
public void exitHeader(CSVParser.HeaderContext ctx)
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
public void enterRecord(CSVParser.RecordContext ctx)
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
public void exitRecord(CSVParser.RecordContext ctx)
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
public void exitTextField(CSVParser.TextFieldContext ctx)
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
public void exitStringField(CSVParser.StringFieldContext ctx)
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
public void exitEmptyField(CSVParser.EmptyFieldContext ctx)
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()
-
-