Class CSVBaseListener

java.lang.Object
org.jgrapht.nio.csv.CSVBaseListener
All Implemented Interfaces:
org.antlr.v4.runtime.tree.ParseTreeListener, CSVListener
Direct Known Subclasses:
CSVEventDrivenImporter.RowCSVListener

class CSVBaseListener extends Object implements CSVListener
This class provides an empty implementation of CSVListener, which can be extended to create a listener which only needs to handle a subset of the available methods.
  • Constructor Details

    • CSVBaseListener

      CSVBaseListener()
  • Method Details

    • enterFile

      public void enterFile(CSVParser.FileContext ctx)
      Enter a parse tree produced by CSVParser.file().

      The default implementation does nothing.

      Specified by:
      enterFile in interface CSVListener
      Parameters:
      ctx - the parse tree
    • exitFile

      public void exitFile(CSVParser.FileContext ctx)
      Exit a parse tree produced by CSVParser.file().

      The default implementation does nothing.

      Specified by:
      exitFile in interface CSVListener
      Parameters:
      ctx - the parse tree
    • enterHeader

      public void enterHeader(CSVParser.HeaderContext ctx)
      Enter a parse tree produced by CSVParser.header().

      The default implementation does nothing.

      Specified by:
      enterHeader in interface CSVListener
      Parameters:
      ctx - the parse tree
    • exitHeader

      public void exitHeader(CSVParser.HeaderContext ctx)
      Exit a parse tree produced by CSVParser.header().

      The default implementation does nothing.

      Specified by:
      exitHeader in interface CSVListener
      Parameters:
      ctx - the parse tree
    • enterRecord

      public void enterRecord(CSVParser.RecordContext ctx)
      Enter a parse tree produced by CSVParser.record().

      The default implementation does nothing.

      Specified by:
      enterRecord in interface CSVListener
      Parameters:
      ctx - the parse tree
    • exitRecord

      public void exitRecord(CSVParser.RecordContext ctx)
      Exit a parse tree produced by CSVParser.record().

      The default implementation does nothing.

      Specified by:
      exitRecord in interface CSVListener
      Parameters:
      ctx - the parse tree
    • enterTextField

      public void enterTextField(CSVParser.TextFieldContext ctx)
      Enter a parse tree produced by the TextField labeled alternative in CSVParser.field().

      The default implementation does nothing.

      Specified by:
      enterTextField in interface CSVListener
      Parameters:
      ctx - the parse tree
    • exitTextField

      public void exitTextField(CSVParser.TextFieldContext ctx)
      Exit a parse tree produced by the TextField labeled alternative in CSVParser.field().

      The default implementation does nothing.

      Specified by:
      exitTextField in interface CSVListener
      Parameters:
      ctx - the parse tree
    • enterStringField

      public void enterStringField(CSVParser.StringFieldContext ctx)
      Enter a parse tree produced by the StringField labeled alternative in CSVParser.field().

      The default implementation does nothing.

      Specified by:
      enterStringField in interface CSVListener
      Parameters:
      ctx - the parse tree
    • exitStringField

      public void exitStringField(CSVParser.StringFieldContext ctx)
      Exit a parse tree produced by the StringField labeled alternative in CSVParser.field().

      The default implementation does nothing.

      Specified by:
      exitStringField in interface CSVListener
      Parameters:
      ctx - the parse tree
    • enterEmptyField

      public void enterEmptyField(CSVParser.EmptyFieldContext ctx)
      Enter a parse tree produced by the EmptyField labeled alternative in CSVParser.field().

      The default implementation does nothing.

      Specified by:
      enterEmptyField in interface CSVListener
      Parameters:
      ctx - the parse tree
    • exitEmptyField

      public void exitEmptyField(CSVParser.EmptyFieldContext ctx)
      Exit a parse tree produced by the EmptyField labeled alternative in CSVParser.field().

      The default implementation does nothing.

      Specified by:
      exitEmptyField in interface CSVListener
      Parameters:
      ctx - the parse tree
    • enterEveryRule

      public void enterEveryRule(org.antlr.v4.runtime.ParserRuleContext ctx)

      The default implementation does nothing.

      Specified by:
      enterEveryRule in interface org.antlr.v4.runtime.tree.ParseTreeListener
    • exitEveryRule

      public void exitEveryRule(org.antlr.v4.runtime.ParserRuleContext ctx)

      The default implementation does nothing.

      Specified by:
      exitEveryRule in interface org.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 interface org.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 interface org.antlr.v4.runtime.tree.ParseTreeListener