Class 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>
- Direct Known Subclasses:
JsonParserVisitor
JSON5Visitor,
which can be extended to create a visitor which only needs to handle a subset
of the available methods.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionVisit a parse tree produced byJSON5Parser.arr().Visit a parse tree produced byJSON5Parser.json5().Visit a parse tree produced byJSON5Parser.key().Visit a parse tree produced byJSON5Parser.member().Visit a parse tree produced byJSON5Parser.number().Visit a parse tree produced byJSON5Parser.obj().Visit a parse tree produced byJSON5Parser.value().Methods inherited from class org.antlr.v4.runtime.tree.AbstractParseTreeVisitor
aggregateResult, defaultResult, shouldVisitNextChild, visit, visitChildren, visitErrorNode, visitTerminalMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.antlr.v4.runtime.tree.ParseTreeVisitor
visit, visitChildren, visitErrorNode, visitTerminal
-
Constructor Details
-
JSON5BaseVisitor
public JSON5BaseVisitor()
-
-
Method Details
-
visitJson5
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
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
-
visitMember
Visit a parse tree produced byJSON5Parser.member().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitMemberin interfaceJSON5Visitor<T>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitKey
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
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
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
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
-