Class TomlParserVisitor
- All Implemented Interfaces:
org.antlr.v4.runtime.tree.ParseTreeVisitor<Toml>,TomlParserVisitor<Toml>
-
Constructor Summary
ConstructorsConstructorDescriptionTomlParserVisitor(Path path, @Nullable org.openrewrite.FileAttributes fileAttributes, org.openrewrite.internal.EncodingDetectingInputStream source) -
Method Summary
Modifier and TypeMethodDescriptionintadvanceCursor(int newCodePointIndex) Visit a parse tree produced byTomlParser.array().Visit a parse tree produced byTomlParser.arrayTable().Visit a parse tree produced byTomlParser.bool().visitChildren(org.antlr.v4.runtime.tree.RuleNode node) Visit a parse tree produced byTomlParser.dateTime().Visit a parse tree produced byTomlParser.document().Visit a parse tree produced byTomlParser.dottedKey().Visit a parse tree produced byTomlParser.floatingPoint().Visit a parse tree produced byTomlParser.inlineTable().Visit a parse tree produced byTomlParser.integer().Visit a parse tree produced byTomlParser.key().Visit a parse tree produced byTomlParser.keyValue().Visit a parse tree produced byTomlParser.simpleKey().Visit a parse tree produced byTomlParser.standardTable().Visit a parse tree produced byTomlParser.string().Methods inherited from class org.openrewrite.toml.internal.grammar.TomlParserBaseVisitor
visitComment, visitCommentOrNl, visitExpression, visitQuotedKey, visitTable, visitUnquotedKey, visitValueMethods inherited from class org.antlr.v4.runtime.tree.AbstractParseTreeVisitor
aggregateResult, defaultResult, shouldVisitNextChild, visit, 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, visitErrorNode, visitTerminal
-
Constructor Details
-
TomlParserVisitor
public TomlParserVisitor(Path path, @Nullable org.openrewrite.FileAttributes fileAttributes, org.openrewrite.internal.EncodingDetectingInputStream source)
-
-
Method Details
-
visitChildren
-
visitDocument
Description copied from class:TomlParserBaseVisitorVisit a parse tree produced byTomlParser.document().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitDocumentin interfaceTomlParserVisitor<Toml>- Overrides:
visitDocumentin classTomlParserBaseVisitor<Toml>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitKey
Description copied from class:TomlParserBaseVisitorVisit a parse tree produced byTomlParser.key().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitKeyin interfaceTomlParserVisitor<Toml>- Overrides:
visitKeyin classTomlParserBaseVisitor<Toml>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitSimpleKey
Description copied from class:TomlParserBaseVisitorVisit a parse tree produced byTomlParser.simpleKey().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitSimpleKeyin interfaceTomlParserVisitor<Toml>- Overrides:
visitSimpleKeyin classTomlParserBaseVisitor<Toml>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitDottedKey
Description copied from class:TomlParserBaseVisitorVisit a parse tree produced byTomlParser.dottedKey().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitDottedKeyin interfaceTomlParserVisitor<Toml>- Overrides:
visitDottedKeyin classTomlParserBaseVisitor<Toml>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitKeyValue
Description copied from class:TomlParserBaseVisitorVisit a parse tree produced byTomlParser.keyValue().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitKeyValuein interfaceTomlParserVisitor<Toml>- Overrides:
visitKeyValuein classTomlParserBaseVisitor<Toml>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitString
Description copied from class:TomlParserBaseVisitorVisit a parse tree produced byTomlParser.string().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitStringin interfaceTomlParserVisitor<Toml>- Overrides:
visitStringin classTomlParserBaseVisitor<Toml>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitInteger
Description copied from class:TomlParserBaseVisitorVisit a parse tree produced byTomlParser.integer().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitIntegerin interfaceTomlParserVisitor<Toml>- Overrides:
visitIntegerin classTomlParserBaseVisitor<Toml>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitFloatingPoint
Description copied from class:TomlParserBaseVisitorVisit a parse tree produced byTomlParser.floatingPoint().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitFloatingPointin interfaceTomlParserVisitor<Toml>- Overrides:
visitFloatingPointin classTomlParserBaseVisitor<Toml>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitBool
Description copied from class:TomlParserBaseVisitorVisit a parse tree produced byTomlParser.bool().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitBoolin interfaceTomlParserVisitor<Toml>- Overrides:
visitBoolin classTomlParserBaseVisitor<Toml>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitDateTime
Description copied from class:TomlParserBaseVisitorVisit a parse tree produced byTomlParser.dateTime().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitDateTimein interfaceTomlParserVisitor<Toml>- Overrides:
visitDateTimein classTomlParserBaseVisitor<Toml>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitArray
Description copied from class:TomlParserBaseVisitorVisit a parse tree produced byTomlParser.array().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitArrayin interfaceTomlParserVisitor<Toml>- Overrides:
visitArrayin classTomlParserBaseVisitor<Toml>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitInlineTable
Description copied from class:TomlParserBaseVisitorVisit a parse tree produced byTomlParser.inlineTable().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitInlineTablein interfaceTomlParserVisitor<Toml>- Overrides:
visitInlineTablein classTomlParserBaseVisitor<Toml>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitStandardTable
Description copied from class:TomlParserBaseVisitorVisit a parse tree produced byTomlParser.standardTable().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitStandardTablein interfaceTomlParserVisitor<Toml>- Overrides:
visitStandardTablein classTomlParserBaseVisitor<Toml>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitArrayTable
Description copied from class:TomlParserBaseVisitorVisit a parse tree produced byTomlParser.arrayTable().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitArrayTablein interfaceTomlParserVisitor<Toml>- Overrides:
visitArrayTablein classTomlParserBaseVisitor<Toml>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
advanceCursor
public int advanceCursor(int newCodePointIndex)
-