- 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 java.lang.Object implements JsonListener
This class provides an empty implementation ofJsonListener, which can be extended to create a listener which only needs to handle a subset of the available methods.
-
-
Constructor Summary
Constructors Constructor Description JsonBaseListener()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidenterArray(JsonParser.ArrayContext ctx)Enter a parse tree produced byJsonParser.array().voidenterEveryRule(org.antlr.v4.runtime.ParserRuleContext ctx)voidenterJson(JsonParser.JsonContext ctx)Enter a parse tree produced byJsonParser.json().voidenterObj(JsonParser.ObjContext ctx)Enter a parse tree produced byJsonParser.obj().voidenterPair(JsonParser.PairContext ctx)Enter a parse tree produced byJsonParser.pair().voidenterValue(JsonParser.ValueContext ctx)Enter a parse tree produced byJsonParser.value().voidexitArray(JsonParser.ArrayContext ctx)Exit a parse tree produced byJsonParser.array().voidexitEveryRule(org.antlr.v4.runtime.ParserRuleContext ctx)voidexitJson(JsonParser.JsonContext ctx)Exit a parse tree produced byJsonParser.json().voidexitObj(JsonParser.ObjContext ctx)Exit a parse tree produced byJsonParser.obj().voidexitPair(JsonParser.PairContext ctx)Exit a parse tree produced byJsonParser.pair().voidexitValue(JsonParser.ValueContext ctx)Exit a parse tree produced byJsonParser.value().voidvisitErrorNode(org.antlr.v4.runtime.tree.ErrorNode node)voidvisitTerminal(org.antlr.v4.runtime.tree.TerminalNode node)
-
-
-
Method Detail
-
enterJson
public void enterJson(JsonParser.JsonContext ctx)
Enter a parse tree produced byJsonParser.json().The default implementation does nothing.
- Specified by:
enterJsonin interfaceJsonListener- Parameters:
ctx- the parse tree
-
exitJson
public void exitJson(JsonParser.JsonContext ctx)
Exit a parse tree produced byJsonParser.json().The default implementation does nothing.
- Specified by:
exitJsonin interfaceJsonListener- Parameters:
ctx- the parse tree
-
enterObj
public void enterObj(JsonParser.ObjContext ctx)
Enter a parse tree produced byJsonParser.obj().The default implementation does nothing.
- Specified by:
enterObjin interfaceJsonListener- Parameters:
ctx- the parse tree
-
exitObj
public void exitObj(JsonParser.ObjContext ctx)
Exit a parse tree produced byJsonParser.obj().The default implementation does nothing.
- Specified by:
exitObjin interfaceJsonListener- Parameters:
ctx- the parse tree
-
enterPair
public void enterPair(JsonParser.PairContext ctx)
Enter a parse tree produced byJsonParser.pair().The default implementation does nothing.
- Specified by:
enterPairin interfaceJsonListener- Parameters:
ctx- the parse tree
-
exitPair
public void exitPair(JsonParser.PairContext ctx)
Exit a parse tree produced byJsonParser.pair().The default implementation does nothing.
- Specified by:
exitPairin interfaceJsonListener- Parameters:
ctx- the parse tree
-
enterArray
public void enterArray(JsonParser.ArrayContext ctx)
Enter a parse tree produced byJsonParser.array().The default implementation does nothing.
- Specified by:
enterArrayin interfaceJsonListener- Parameters:
ctx- the parse tree
-
exitArray
public void exitArray(JsonParser.ArrayContext ctx)
Exit a parse tree produced byJsonParser.array().The default implementation does nothing.
- Specified by:
exitArrayin interfaceJsonListener- Parameters:
ctx- the parse tree
-
enterValue
public void enterValue(JsonParser.ValueContext ctx)
Enter a parse tree produced byJsonParser.value().The default implementation does nothing.
- Specified by:
enterValuein interfaceJsonListener- Parameters:
ctx- the parse tree
-
exitValue
public void exitValue(JsonParser.ValueContext ctx)
Exit a parse tree produced byJsonParser.value().The default implementation does nothing.
- Specified by:
exitValuein interfaceJsonListener- 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
-
-