- java.lang.Object
-
- org.jgrapht.io.JsonBaseListener
-
- All Implemented Interfaces:
org.antlr.v4.runtime.tree.ParseTreeListener
,JsonListener
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 void
enterArray(JsonParser.ArrayContext ctx)
Enter a parse tree produced byJsonParser.array()
.void
enterEveryRule(org.antlr.v4.runtime.ParserRuleContext ctx)
void
enterJson(JsonParser.JsonContext ctx)
Enter a parse tree produced byJsonParser.json()
.void
enterObj(JsonParser.ObjContext ctx)
Enter a parse tree produced byJsonParser.obj()
.void
enterPair(JsonParser.PairContext ctx)
Enter a parse tree produced byJsonParser.pair()
.void
enterValue(JsonParser.ValueContext ctx)
Enter a parse tree produced byJsonParser.value()
.void
exitArray(JsonParser.ArrayContext ctx)
Exit a parse tree produced byJsonParser.array()
.void
exitEveryRule(org.antlr.v4.runtime.ParserRuleContext ctx)
void
exitJson(JsonParser.JsonContext ctx)
Exit a parse tree produced byJsonParser.json()
.void
exitObj(JsonParser.ObjContext ctx)
Exit a parse tree produced byJsonParser.obj()
.void
exitPair(JsonParser.PairContext ctx)
Exit a parse tree produced byJsonParser.pair()
.void
exitValue(JsonParser.ValueContext ctx)
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)
-
-
-
Method Detail
-
enterJson
public void enterJson(JsonParser.JsonContext ctx)
Enter a parse tree produced byJsonParser.json()
.The default implementation does nothing.
- Specified by:
enterJson
in 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:
exitJson
in 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:
enterObj
in 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:
exitObj
in 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:
enterPair
in 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:
exitPair
in 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:
enterArray
in 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:
exitArray
in 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:
enterValue
in 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:
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
-
-