Package io.operon.jsonparser
Class JSONBaseVisitor<T>
- java.lang.Object
-
- org.antlr.v4.runtime.tree.AbstractParseTreeVisitor<T>
-
- io.operon.jsonparser.JSONBaseVisitor<T>
-
- Type Parameters:
T- The return type of the visit operation. UseVoidfor operations with no return type.
- All Implemented Interfaces:
JSONVisitor<T>,org.antlr.v4.runtime.tree.ParseTreeVisitor<T>
public class JSONBaseVisitor<T> extends org.antlr.v4.runtime.tree.AbstractParseTreeVisitor<T> implements JSONVisitor<T>
This class provides an empty implementation ofJSONVisitor, which can be extended to create a visitor which only needs to handle a subset of the available methods.
-
-
Constructor Summary
Constructors Constructor Description JSONBaseVisitor()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description TvisitArray(JSONParser.ArrayContext ctx)Visit a parse tree produced byJSONParser.array().TvisitJson(JSONParser.JsonContext ctx)Visit a parse tree produced byJSONParser.json().TvisitObj(JSONParser.ObjContext ctx)Visit a parse tree produced byJSONParser.obj().TvisitPair(JSONParser.PairContext ctx)Visit a parse tree produced byJSONParser.pair().TvisitValue(JSONParser.ValueContext ctx)Visit a parse tree produced byJSONParser.value().-
Methods inherited from class org.antlr.v4.runtime.tree.AbstractParseTreeVisitor
aggregateResult, defaultResult, shouldVisitNextChild, visit, visitChildren, visitErrorNode, visitTerminal
-
-
-
-
Method Detail
-
visitJson
public T visitJson(JSONParser.JsonContext ctx)
Visit a parse tree produced byJSONParser.json().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitJsonin interfaceJSONVisitor<T>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitObj
public T visitObj(JSONParser.ObjContext ctx)
Visit a parse tree produced byJSONParser.obj().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitObjin interfaceJSONVisitor<T>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitPair
public T visitPair(JSONParser.PairContext ctx)
Visit a parse tree produced byJSONParser.pair().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitPairin interfaceJSONVisitor<T>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitArray
public T visitArray(JSONParser.ArrayContext ctx)
Visit a parse tree produced byJSONParser.array().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitArrayin interfaceJSONVisitor<T>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitValue
public T visitValue(JSONParser.ValueContext ctx)
Visit a parse tree produced byJSONParser.value().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitValuein interfaceJSONVisitor<T>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
-