public class JSONBaseListener extends java.lang.Object implements JSONListener
JSONListener
,
which can be extended to create a listener which only needs to handle a subset
of the available methods.Constructor and Description |
---|
JSONBaseListener() |
Modifier and Type | Method and Description |
---|---|
void |
enterArray(JSONParser.ArrayContext ctx)
Enter a parse tree produced by
JSONParser.array() . |
void |
enterEveryRule(org.antlr.v4.runtime.ParserRuleContext ctx) |
void |
enterJson(JSONParser.JsonContext ctx)
Enter a parse tree produced by
JSONParser.json() . |
void |
enterObject(JSONParser.ObjectContext ctx)
Enter a parse tree produced by
JSONParser.object() . |
void |
enterPair(JSONParser.PairContext ctx)
Enter a parse tree produced by
JSONParser.pair() . |
void |
enterValue(JSONParser.ValueContext ctx)
Enter a parse tree produced by
JSONParser.value() . |
void |
exitArray(JSONParser.ArrayContext ctx)
Exit a parse tree produced by
JSONParser.array() . |
void |
exitEveryRule(org.antlr.v4.runtime.ParserRuleContext ctx) |
void |
exitJson(JSONParser.JsonContext ctx)
Exit a parse tree produced by
JSONParser.json() . |
void |
exitObject(JSONParser.ObjectContext ctx)
Exit a parse tree produced by
JSONParser.object() . |
void |
exitPair(JSONParser.PairContext ctx)
Exit a parse tree produced by
JSONParser.pair() . |
void |
exitValue(JSONParser.ValueContext ctx)
Exit a parse tree produced by
JSONParser.value() . |
void |
visitErrorNode(org.antlr.v4.runtime.tree.ErrorNode node) |
void |
visitTerminal(org.antlr.v4.runtime.tree.TerminalNode node) |
public void enterJson(@NotNull JSONParser.JsonContext ctx)
JSONParser.json()
.
The default implementation does nothing.
enterJson
in interface JSONListener
ctx
- the parse treepublic void exitJson(@NotNull JSONParser.JsonContext ctx)
JSONParser.json()
.
The default implementation does nothing.
exitJson
in interface JSONListener
ctx
- the parse treepublic void enterObject(@NotNull JSONParser.ObjectContext ctx)
JSONParser.object()
.
The default implementation does nothing.
enterObject
in interface JSONListener
ctx
- the parse treepublic void exitObject(@NotNull JSONParser.ObjectContext ctx)
JSONParser.object()
.
The default implementation does nothing.
exitObject
in interface JSONListener
ctx
- the parse treepublic void enterPair(@NotNull JSONParser.PairContext ctx)
JSONParser.pair()
.
The default implementation does nothing.
enterPair
in interface JSONListener
ctx
- the parse treepublic void exitPair(@NotNull JSONParser.PairContext ctx)
JSONParser.pair()
.
The default implementation does nothing.
exitPair
in interface JSONListener
ctx
- the parse treepublic void enterArray(@NotNull JSONParser.ArrayContext ctx)
JSONParser.array()
.
The default implementation does nothing.
enterArray
in interface JSONListener
ctx
- the parse treepublic void exitArray(@NotNull JSONParser.ArrayContext ctx)
JSONParser.array()
.
The default implementation does nothing.
exitArray
in interface JSONListener
ctx
- the parse treepublic void enterValue(@NotNull JSONParser.ValueContext ctx)
JSONParser.value()
.
The default implementation does nothing.
enterValue
in interface JSONListener
ctx
- the parse treepublic void exitValue(@NotNull JSONParser.ValueContext ctx)
JSONParser.value()
.
The default implementation does nothing.
exitValue
in interface JSONListener
ctx
- the parse treepublic void enterEveryRule(@NotNull org.antlr.v4.runtime.ParserRuleContext ctx)
The default implementation does nothing.
enterEveryRule
in interface org.antlr.v4.runtime.tree.ParseTreeListener
public void exitEveryRule(@NotNull org.antlr.v4.runtime.ParserRuleContext ctx)
The default implementation does nothing.
exitEveryRule
in interface org.antlr.v4.runtime.tree.ParseTreeListener
public void visitTerminal(@NotNull org.antlr.v4.runtime.tree.TerminalNode node)
The default implementation does nothing.
visitTerminal
in interface org.antlr.v4.runtime.tree.ParseTreeListener
public void visitErrorNode(@NotNull org.antlr.v4.runtime.tree.ErrorNode node)
The default implementation does nothing.
visitErrorNode
in interface org.antlr.v4.runtime.tree.ParseTreeListener