java.lang.Object
org.jgrapht.nio.json.JsonBaseListener
- All Implemented Interfaces:
org.antlr.v4.runtime.tree.ParseTreeListener
,JsonListener
- Direct Known Subclasses:
JSONEventDrivenImporter.NotifyJsonListener
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 Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
Enter a parse tree produced byJsonParser.array()
.void
enterEveryRule
(org.antlr.v4.runtime.ParserRuleContext ctx) void
Enter a parse tree produced byJsonParser.json()
.void
Enter a parse tree produced byJsonParser.obj()
.void
Enter a parse tree produced byJsonParser.pair()
.void
Enter a parse tree produced byJsonParser.value()
.void
Exit a parse tree produced byJsonParser.array()
.void
exitEveryRule
(org.antlr.v4.runtime.ParserRuleContext ctx) void
Exit a parse tree produced byJsonParser.json()
.void
Exit a parse tree produced byJsonParser.obj()
.void
Exit a parse tree produced byJsonParser.pair()
.void
Exit a parse tree produced byJsonParser.value()
.void
visitErrorNode
(org.antlr.v4.runtime.tree.ErrorNode node) void
visitTerminal
(org.antlr.v4.runtime.tree.TerminalNode node)
-
Constructor Details
-
JsonBaseListener
JsonBaseListener()
-
-
Method Details
-
enterJson
Enter a parse tree produced byJsonParser.json()
.The default implementation does nothing.
- Specified by:
enterJson
in interfaceJsonListener
- Parameters:
ctx
- the parse tree
-
exitJson
Exit a parse tree produced byJsonParser.json()
.The default implementation does nothing.
- Specified by:
exitJson
in interfaceJsonListener
- Parameters:
ctx
- the parse tree
-
enterObj
Enter a parse tree produced byJsonParser.obj()
.The default implementation does nothing.
- Specified by:
enterObj
in interfaceJsonListener
- Parameters:
ctx
- the parse tree
-
exitObj
Exit a parse tree produced byJsonParser.obj()
.The default implementation does nothing.
- Specified by:
exitObj
in interfaceJsonListener
- Parameters:
ctx
- the parse tree
-
enterPair
Enter a parse tree produced byJsonParser.pair()
.The default implementation does nothing.
- Specified by:
enterPair
in interfaceJsonListener
- Parameters:
ctx
- the parse tree
-
exitPair
Exit a parse tree produced byJsonParser.pair()
.The default implementation does nothing.
- Specified by:
exitPair
in interfaceJsonListener
- Parameters:
ctx
- the parse tree
-
enterArray
Enter a parse tree produced byJsonParser.array()
.The default implementation does nothing.
- Specified by:
enterArray
in interfaceJsonListener
- Parameters:
ctx
- the parse tree
-
exitArray
Exit a parse tree produced byJsonParser.array()
.The default implementation does nothing.
- Specified by:
exitArray
in interfaceJsonListener
- Parameters:
ctx
- the parse tree
-
enterValue
Enter a parse tree produced byJsonParser.value()
.The default implementation does nothing.
- Specified by:
enterValue
in interfaceJsonListener
- Parameters:
ctx
- the parse tree
-
exitValue
Exit a parse tree produced byJsonParser.value()
.The default implementation does nothing.
- Specified by:
exitValue
in interfaceJsonListener
- 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
-