Class JSON5BaseVisitor<T>
- java.lang.Object
-
- org.antlr.v4.runtime.tree.AbstractParseTreeVisitor<T>
-
- org.reploop.parser.json.base.JSON5BaseVisitor<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>,JSON5Visitor<T>
public class JSON5BaseVisitor<T> extends org.antlr.v4.runtime.tree.AbstractParseTreeVisitor<T> implements JSON5Visitor<T>
This class provides an empty implementation ofJSON5Visitor, which can be extended to create a visitor which only needs to handle a subset of the available methods.
-
-
Constructor Summary
Constructors Constructor Description JSON5BaseVisitor()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description TvisitArr(JSON5Parser.ArrContext ctx)Visit a parse tree produced byJSON5Parser.arr().TvisitJson5(JSON5Parser.Json5Context ctx)Visit a parse tree produced byJSON5Parser.json5().TvisitKey(JSON5Parser.KeyContext ctx)Visit a parse tree produced byJSON5Parser.key().TvisitNumber(JSON5Parser.NumberContext ctx)Visit a parse tree produced byJSON5Parser.number().TvisitObj(JSON5Parser.ObjContext ctx)Visit a parse tree produced byJSON5Parser.obj().TvisitPair(JSON5Parser.PairContext ctx)Visit a parse tree produced byJSON5Parser.pair().TvisitValue(JSON5Parser.ValueContext ctx)Visit a parse tree produced byJSON5Parser.value().-
Methods inherited from class org.antlr.v4.runtime.tree.AbstractParseTreeVisitor
aggregateResult, defaultResult, shouldVisitNextChild, visit, visitChildren, visitErrorNode, visitTerminal
-
-
-
-
Method Detail
-
visitJson5
public T visitJson5(JSON5Parser.Json5Context ctx)
Visit a parse tree produced byJSON5Parser.json5().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitJson5in interfaceJSON5Visitor<T>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitObj
public T visitObj(JSON5Parser.ObjContext ctx)
Visit a parse tree produced byJSON5Parser.obj().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitObjin interfaceJSON5Visitor<T>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitPair
public T visitPair(JSON5Parser.PairContext ctx)
Visit a parse tree produced byJSON5Parser.pair().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitPairin interfaceJSON5Visitor<T>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitKey
public T visitKey(JSON5Parser.KeyContext ctx)
Visit a parse tree produced byJSON5Parser.key().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitKeyin interfaceJSON5Visitor<T>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitValue
public T visitValue(JSON5Parser.ValueContext ctx)
Visit a parse tree produced byJSON5Parser.value().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitValuein interfaceJSON5Visitor<T>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitArr
public T visitArr(JSON5Parser.ArrContext ctx)
Visit a parse tree produced byJSON5Parser.arr().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitArrin interfaceJSON5Visitor<T>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitNumber
public T visitNumber(JSON5Parser.NumberContext ctx)
Visit a parse tree produced byJSON5Parser.number().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitNumberin interfaceJSON5Visitor<T>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
-