Class JsonBaseBaseVisitor<T>
- java.lang.Object
-
- org.antlr.v4.runtime.tree.AbstractParseTreeVisitor<T>
-
- org.reploop.parser.json.base.JsonBaseBaseVisitor<T>
-
- Type Parameters:
T- The return type of the visit operation. UseVoidfor operations with no return type.
- All Implemented Interfaces:
org.antlr.v4.runtime.tree.ParseTreeVisitor<T>,JsonBaseVisitor<T>
- Direct Known Subclasses:
JsonAstBuilder
public class JsonBaseBaseVisitor<T> extends org.antlr.v4.runtime.tree.AbstractParseTreeVisitor<T> implements JsonBaseVisitor<T>
This class provides an empty implementation ofJsonBaseVisitor, which can be extended to create a visitor which only needs to handle a subset of the available methods.
-
-
Constructor Summary
Constructors Constructor Description JsonBaseBaseVisitor()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description TvisitArr(JsonBaseParser.ArrContext ctx)Visit a parse tree produced byJsonBaseParser.arr().TvisitArrValue(JsonBaseParser.ArrValueContext ctx)Visit a parse tree produced by thearrValuelabeled alternative inJsonBaseParser.value().TvisitFalseValue(JsonBaseParser.FalseValueContext ctx)Visit a parse tree produced by thefalseValuelabeled alternative inJsonBaseParser.value().TvisitJson(JsonBaseParser.JsonContext ctx)Visit a parse tree produced byJsonBaseParser.json().TvisitNullValue(JsonBaseParser.NullValueContext ctx)Visit a parse tree produced by thenullValuelabeled alternative inJsonBaseParser.value().TvisitNumberValue(JsonBaseParser.NumberValueContext ctx)Visit a parse tree produced by thenumberValuelabeled alternative inJsonBaseParser.value().TvisitObj(JsonBaseParser.ObjContext ctx)Visit a parse tree produced byJsonBaseParser.obj().TvisitObjValue(JsonBaseParser.ObjValueContext ctx)Visit a parse tree produced by theobjValuelabeled alternative inJsonBaseParser.value().TvisitPair(JsonBaseParser.PairContext ctx)Visit a parse tree produced byJsonBaseParser.pair().TvisitStringValue(JsonBaseParser.StringValueContext ctx)Visit a parse tree produced by thestringValuelabeled alternative inJsonBaseParser.value().TvisitTrueValue(JsonBaseParser.TrueValueContext ctx)Visit a parse tree produced by thetrueValuelabeled alternative inJsonBaseParser.value().-
Methods inherited from class org.antlr.v4.runtime.tree.AbstractParseTreeVisitor
aggregateResult, defaultResult, shouldVisitNextChild, visit, visitChildren, visitErrorNode, visitTerminal
-
-
-
-
Method Detail
-
visitJson
public T visitJson(JsonBaseParser.JsonContext ctx)
Visit a parse tree produced byJsonBaseParser.json().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitJsonin interfaceJsonBaseVisitor<T>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitObj
public T visitObj(JsonBaseParser.ObjContext ctx)
Visit a parse tree produced byJsonBaseParser.obj().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitObjin interfaceJsonBaseVisitor<T>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitPair
public T visitPair(JsonBaseParser.PairContext ctx)
Visit a parse tree produced byJsonBaseParser.pair().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitPairin interfaceJsonBaseVisitor<T>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitArr
public T visitArr(JsonBaseParser.ArrContext ctx)
Visit a parse tree produced byJsonBaseParser.arr().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitArrin interfaceJsonBaseVisitor<T>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitStringValue
public T visitStringValue(JsonBaseParser.StringValueContext ctx)
Visit a parse tree produced by thestringValuelabeled alternative inJsonBaseParser.value().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitStringValuein interfaceJsonBaseVisitor<T>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitNumberValue
public T visitNumberValue(JsonBaseParser.NumberValueContext ctx)
Visit a parse tree produced by thenumberValuelabeled alternative inJsonBaseParser.value().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitNumberValuein interfaceJsonBaseVisitor<T>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitObjValue
public T visitObjValue(JsonBaseParser.ObjValueContext ctx)
Visit a parse tree produced by theobjValuelabeled alternative inJsonBaseParser.value().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitObjValuein interfaceJsonBaseVisitor<T>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitArrValue
public T visitArrValue(JsonBaseParser.ArrValueContext ctx)
Visit a parse tree produced by thearrValuelabeled alternative inJsonBaseParser.value().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitArrValuein interfaceJsonBaseVisitor<T>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitTrueValue
public T visitTrueValue(JsonBaseParser.TrueValueContext ctx)
Visit a parse tree produced by thetrueValuelabeled alternative inJsonBaseParser.value().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitTrueValuein interfaceJsonBaseVisitor<T>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitFalseValue
public T visitFalseValue(JsonBaseParser.FalseValueContext ctx)
Visit a parse tree produced by thefalseValuelabeled alternative inJsonBaseParser.value().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitFalseValuein interfaceJsonBaseVisitor<T>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitNullValue
public T visitNullValue(JsonBaseParser.NullValueContext ctx)
Visit a parse tree produced by thenullValuelabeled alternative inJsonBaseParser.value().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitNullValuein interfaceJsonBaseVisitor<T>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
-