- java.lang.Object
-
- org.jgrapht.io.CSVBaseListener
-
- All Implemented Interfaces:
org.antlr.v4.runtime.tree.ParseTreeListener
,CSVListener
class CSVBaseListener extends java.lang.Object implements CSVListener
This class provides an empty implementation ofCSVListener
, which can be extended to create a listener which only needs to handle a subset of the available methods.
-
-
Constructor Summary
Constructors Constructor Description CSVBaseListener()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
enterEmptyField(CSVParser.EmptyFieldContext ctx)
Enter a parse tree produced by theEmptyField
labeled alternative inCSVParser.field()
.void
enterEveryRule(org.antlr.v4.runtime.ParserRuleContext ctx)
void
enterFile(CSVParser.FileContext ctx)
Enter a parse tree produced byCSVParser.file()
.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
enterStringField(CSVParser.StringFieldContext ctx)
Enter a parse tree produced by theStringField
labeled alternative inCSVParser.field()
.void
enterTextField(CSVParser.TextFieldContext ctx)
Enter a parse tree produced by theTextField
labeled alternative inCSVParser.field()
.void
exitEmptyField(CSVParser.EmptyFieldContext ctx)
Exit a parse tree produced by theEmptyField
labeled alternative inCSVParser.field()
.void
exitEveryRule(org.antlr.v4.runtime.ParserRuleContext ctx)
void
exitFile(CSVParser.FileContext ctx)
Exit a parse tree produced byCSVParser.file()
.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()
.void
visitErrorNode(org.antlr.v4.runtime.tree.ErrorNode node)
void
visitTerminal(org.antlr.v4.runtime.tree.TerminalNode node)
-
-
-
Method Detail
-
enterFile
public void enterFile(CSVParser.FileContext ctx)
Enter a parse tree produced byCSVParser.file()
.The default implementation does nothing.
- Specified by:
enterFile
in interfaceCSVListener
- Parameters:
ctx
- the parse tree
-
exitFile
public void exitFile(CSVParser.FileContext ctx)
Exit a parse tree produced byCSVParser.file()
.The default implementation does nothing.
- Specified by:
exitFile
in interfaceCSVListener
- Parameters:
ctx
- the parse tree
-
enterHeader
public void enterHeader(CSVParser.HeaderContext ctx)
Enter a parse tree produced byCSVParser.header()
.The default implementation does nothing.
- Specified by:
enterHeader
in interfaceCSVListener
- Parameters:
ctx
- the parse tree
-
exitHeader
public void exitHeader(CSVParser.HeaderContext ctx)
Exit a parse tree produced byCSVParser.header()
.The default implementation does nothing.
- Specified by:
exitHeader
in interfaceCSVListener
- Parameters:
ctx
- the parse tree
-
enterRecord
public void enterRecord(CSVParser.RecordContext ctx)
Enter a parse tree produced byCSVParser.record()
.The default implementation does nothing.
- Specified by:
enterRecord
in interfaceCSVListener
- Parameters:
ctx
- the parse tree
-
exitRecord
public void exitRecord(CSVParser.RecordContext ctx)
Exit a parse tree produced byCSVParser.record()
.The default implementation does nothing.
- Specified by:
exitRecord
in interfaceCSVListener
- Parameters:
ctx
- the parse tree
-
enterTextField
public void enterTextField(CSVParser.TextFieldContext ctx)
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
public void exitTextField(CSVParser.TextFieldContext ctx)
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
public void enterStringField(CSVParser.StringFieldContext ctx)
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
public void exitStringField(CSVParser.StringFieldContext ctx)
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
public void enterEmptyField(CSVParser.EmptyFieldContext ctx)
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
public void exitEmptyField(CSVParser.EmptyFieldContext ctx)
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
-
-