- 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 voidenterEmptyField(CSVParser.EmptyFieldContext ctx)Enter a parse tree produced by theEmptyFieldlabeled alternative inCSVParser.field().voidenterEveryRule(org.antlr.v4.runtime.ParserRuleContext ctx)voidenterFile(CSVParser.FileContext ctx)Enter a parse tree produced byCSVParser.file().voidenterHeader(CSVParser.HeaderContext ctx)Enter a parse tree produced byCSVParser.header().voidenterRecord(CSVParser.RecordContext ctx)Enter a parse tree produced byCSVParser.record().voidenterStringField(CSVParser.StringFieldContext ctx)Enter a parse tree produced by theStringFieldlabeled alternative inCSVParser.field().voidenterTextField(CSVParser.TextFieldContext ctx)Enter a parse tree produced by theTextFieldlabeled alternative inCSVParser.field().voidexitEmptyField(CSVParser.EmptyFieldContext ctx)Exit a parse tree produced by theEmptyFieldlabeled alternative inCSVParser.field().voidexitEveryRule(org.antlr.v4.runtime.ParserRuleContext ctx)voidexitFile(CSVParser.FileContext ctx)Exit a parse tree produced byCSVParser.file().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().voidvisitErrorNode(org.antlr.v4.runtime.tree.ErrorNode node)voidvisitTerminal(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:
enterFilein 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:
exitFilein 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:
enterHeaderin 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:
exitHeaderin 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:
enterRecordin 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:
exitRecordin interfaceCSVListener- Parameters:
ctx- the parse tree
-
enterTextField
public void enterTextField(CSVParser.TextFieldContext ctx)
Enter a parse tree produced by theTextFieldlabeled alternative inCSVParser.field().The default implementation does nothing.
- Specified by:
enterTextFieldin interfaceCSVListener- Parameters:
ctx- the parse tree
-
exitTextField
public void exitTextField(CSVParser.TextFieldContext ctx)
Exit a parse tree produced by theTextFieldlabeled alternative inCSVParser.field().The default implementation does nothing.
- Specified by:
exitTextFieldin interfaceCSVListener- Parameters:
ctx- the parse tree
-
enterStringField
public void enterStringField(CSVParser.StringFieldContext ctx)
Enter a parse tree produced by theStringFieldlabeled alternative inCSVParser.field().The default implementation does nothing.
- Specified by:
enterStringFieldin interfaceCSVListener- Parameters:
ctx- the parse tree
-
exitStringField
public void exitStringField(CSVParser.StringFieldContext ctx)
Exit a parse tree produced by theStringFieldlabeled alternative inCSVParser.field().The default implementation does nothing.
- Specified by:
exitStringFieldin interfaceCSVListener- Parameters:
ctx- the parse tree
-
enterEmptyField
public void enterEmptyField(CSVParser.EmptyFieldContext ctx)
Enter a parse tree produced by theEmptyFieldlabeled alternative inCSVParser.field().The default implementation does nothing.
- Specified by:
enterEmptyFieldin interfaceCSVListener- Parameters:
ctx- the parse tree
-
exitEmptyField
public void exitEmptyField(CSVParser.EmptyFieldContext ctx)
Exit a parse tree produced by theEmptyFieldlabeled alternative inCSVParser.field().The default implementation does nothing.
- Specified by:
exitEmptyFieldin interfaceCSVListener- Parameters:
ctx- the parse tree
-
enterEveryRule
public void enterEveryRule(org.antlr.v4.runtime.ParserRuleContext ctx)
The default implementation does nothing.
- Specified by:
enterEveryRulein interfaceorg.antlr.v4.runtime.tree.ParseTreeListener
-
exitEveryRule
public void exitEveryRule(org.antlr.v4.runtime.ParserRuleContext ctx)
The default implementation does nothing.
- Specified by:
exitEveryRulein interfaceorg.antlr.v4.runtime.tree.ParseTreeListener
-
visitTerminal
public void visitTerminal(org.antlr.v4.runtime.tree.TerminalNode node)
The default implementation does nothing.
- Specified by:
visitTerminalin interfaceorg.antlr.v4.runtime.tree.ParseTreeListener
-
visitErrorNode
public void visitErrorNode(org.antlr.v4.runtime.tree.ErrorNode node)
The default implementation does nothing.
- Specified by:
visitErrorNodein interfaceorg.antlr.v4.runtime.tree.ParseTreeListener
-
-