Class JsonParserVisitor
- All Implemented Interfaces:
org.antlr.v4.runtime.tree.ParseTreeVisitor<Json>,JSON5Visitor<Json>
-
Constructor Summary
ConstructorsConstructorDescriptionJsonParserVisitor(Path path, @Nullable org.openrewrite.FileAttributes fileAttributes, org.openrewrite.internal.EncodingDetectingInputStream source) -
Method Summary
Modifier and TypeMethodDescriptionintadvanceCursor(int newCodePointIndex) Visit 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
-
JsonParserVisitor
public JsonParserVisitor(Path path, @Nullable @Nullable org.openrewrite.FileAttributes fileAttributes, org.openrewrite.internal.EncodingDetectingInputStream source)
-
-
Method Details
-
visitArr
Description copied from class:JSON5BaseVisitorVisit 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<Json>- Overrides:
visitArrin classJSON5BaseVisitor<Json>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitJson5
Description copied from class:JSON5BaseVisitorVisit 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<Json>- Overrides:
visitJson5in classJSON5BaseVisitor<Json>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitKey
Description copied from class:JSON5BaseVisitorVisit 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<Json>- Overrides:
visitKeyin classJSON5BaseVisitor<Json>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitMember
Description copied from class:JSON5BaseVisitorVisit 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<Json>- Overrides:
visitMemberin classJSON5BaseVisitor<Json>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitObj
Description copied from class:JSON5BaseVisitorVisit 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<Json>- Overrides:
visitObjin classJSON5BaseVisitor<Json>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitNumber
Description copied from class:JSON5BaseVisitorVisit 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<Json>- Overrides:
visitNumberin classJSON5BaseVisitor<Json>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitValue
Description copied from class:JSON5BaseVisitorVisit 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<Json>- Overrides:
visitValuein classJSON5BaseVisitor<Json>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
advanceCursor
public int advanceCursor(int newCodePointIndex)
-