Class JsonBaseListener

java.lang.Object
org.jgrapht.nio.json.JsonBaseListener
All Implemented Interfaces:
org.antlr.v4.runtime.tree.ParseTreeListener, JsonListener
Direct Known Subclasses:
JSONEventDrivenImporter.NotifyJsonListener

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

    • JsonBaseListener

      JsonBaseListener()
  • Method Details

    • enterJson

      public void enterJson(JsonParser.JsonContext ctx)
      Enter a parse tree produced by JsonParser.json().

      The default implementation does nothing.

      Specified by:
      enterJson in interface JsonListener
      Parameters:
      ctx - the parse tree
    • exitJson

      public void exitJson(JsonParser.JsonContext ctx)
      Exit a parse tree produced by JsonParser.json().

      The default implementation does nothing.

      Specified by:
      exitJson in interface JsonListener
      Parameters:
      ctx - the parse tree
    • enterObj

      public void enterObj(JsonParser.ObjContext ctx)
      Enter a parse tree produced by JsonParser.obj().

      The default implementation does nothing.

      Specified by:
      enterObj in interface JsonListener
      Parameters:
      ctx - the parse tree
    • exitObj

      public void exitObj(JsonParser.ObjContext ctx)
      Exit a parse tree produced by JsonParser.obj().

      The default implementation does nothing.

      Specified by:
      exitObj in interface JsonListener
      Parameters:
      ctx - the parse tree
    • enterPair

      public void enterPair(JsonParser.PairContext ctx)
      Enter a parse tree produced by JsonParser.pair().

      The default implementation does nothing.

      Specified by:
      enterPair in interface JsonListener
      Parameters:
      ctx - the parse tree
    • exitPair

      public void exitPair(JsonParser.PairContext ctx)
      Exit a parse tree produced by JsonParser.pair().

      The default implementation does nothing.

      Specified by:
      exitPair in interface JsonListener
      Parameters:
      ctx - the parse tree
    • enterArray

      public void enterArray(JsonParser.ArrayContext ctx)
      Enter a parse tree produced by JsonParser.array().

      The default implementation does nothing.

      Specified by:
      enterArray in interface JsonListener
      Parameters:
      ctx - the parse tree
    • exitArray

      public void exitArray(JsonParser.ArrayContext ctx)
      Exit a parse tree produced by JsonParser.array().

      The default implementation does nothing.

      Specified by:
      exitArray in interface JsonListener
      Parameters:
      ctx - the parse tree
    • enterValue

      public void enterValue(JsonParser.ValueContext ctx)
      Enter a parse tree produced by JsonParser.value().

      The default implementation does nothing.

      Specified by:
      enterValue in interface JsonListener
      Parameters:
      ctx - the parse tree
    • exitValue

      public void exitValue(JsonParser.ValueContext ctx)
      Exit a parse tree produced by JsonParser.value().

      The default implementation does nothing.

      Specified by:
      exitValue in interface JsonListener
      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