Package io.operon.jsonparser
Class JSONBaseListener
- java.lang.Object
-
- io.operon.jsonparser.JSONBaseListener
-
- All Implemented Interfaces:
JSONListener,org.antlr.v4.runtime.tree.ParseTreeListener
public class JSONBaseListener extends 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
-
-