Package org.tomlj
Class LineVisitor
java.lang.Object
org.antlr.v4.runtime.tree.AbstractParseTreeVisitor<MutableTomlTable>
- All Implemented Interfaces:
org.antlr.v4.runtime.tree.ParseTreeVisitor<MutableTomlTable>
,TomlParserVisitor<MutableTomlTable>
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate MutableTomlTable
private final ErrorReporter
private final Map
<MutableTomlTable, TomlPosition> private final MutableTomlTable
private final TomlVersion
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected MutableTomlTable
aggregateResult
(MutableTomlTable aggregate, MutableTomlTable nextResult) protected MutableTomlTable
private void
Visit a parse tree produced byTomlParser.arrayTable()
.Visit a parse tree produced byTomlParser.keyval()
.Visit a parse tree produced byTomlParser.standardTable()
.Methods inherited from class org.tomlj.internal.TomlParserBaseVisitor
visitArray, visitArrayValue, visitArrayValues, visitBasicChar, visitBasicString, visitBasicUnescaped, visitBinInt, visitBooleanValue, visitDate, visitDateTime, visitDay, visitDecInt, visitEscaped, visitExpression, visitFalseBool, visitFloatValue, visitHexInt, visitHour, visitHourOffset, visitInlineTable, visitInlineTableValues, visitInteger, visitKey, visitLiteralBody, visitLiteralString, visitLocalDate, visitLocalDateTime, visitLocalTime, visitMinute, visitMinuteOffset, visitMlBasicChar, visitMlBasicString, visitMlBasicUnescaped, visitMlLiteralBody, visitMlLiteralString, visitMonth, visitOctInt, visitOffsetDateTime, visitQuotedKey, visitRegularFloat, visitRegularFloatInf, visitRegularFloatNaN, visitSecond, visitSecondFraction, visitSimpleKey, visitString, visitTable, visitTime, visitTimeOffset, visitToml, visitTomlKey, visitTrueBool, visitUnquotedKey, visitVal, visitYear
Methods inherited from class org.antlr.v4.runtime.tree.AbstractParseTreeVisitor
shouldVisitNextChild, visit, visitChildren, visitErrorNode, visitTerminal
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.antlr.v4.runtime.tree.ParseTreeVisitor
visit, visitChildren, visitErrorNode, visitTerminal
-
Field Details
-
version
-
errorReporter
-
rootTable
-
currentTable
-
openTables
-
-
Constructor Details
-
LineVisitor
LineVisitor(TomlVersion version, ErrorReporter errorReporter)
-
-
Method Details
-
visitKeyval
Description copied from class:TomlParserBaseVisitor
Visit a parse tree produced byTomlParser.keyval()
.The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
onctx
.- Specified by:
visitKeyval
in interfaceTomlParserVisitor<MutableTomlTable>
- Overrides:
visitKeyval
in classTomlParserBaseVisitor<MutableTomlTable>
- Parameters:
ctx
- the parse tree- Returns:
- the visitor result
-
visitStandardTable
Description copied from class:TomlParserBaseVisitor
Visit 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:
visitStandardTable
in interfaceTomlParserVisitor<MutableTomlTable>
- Overrides:
visitStandardTable
in classTomlParserBaseVisitor<MutableTomlTable>
- Parameters:
ctx
- the parse tree- Returns:
- the visitor result
-
visitArrayTable
Description copied from class:TomlParserBaseVisitor
Visit 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:
visitArrayTable
in interfaceTomlParserVisitor<MutableTomlTable>
- Overrides:
visitArrayTable
in classTomlParserBaseVisitor<MutableTomlTable>
- Parameters:
ctx
- the parse tree- Returns:
- the visitor result
-
aggregateResult
- Overrides:
aggregateResult
in classorg.antlr.v4.runtime.tree.AbstractParseTreeVisitor<MutableTomlTable>
-
defaultResult
- Overrides:
defaultResult
in classorg.antlr.v4.runtime.tree.AbstractParseTreeVisitor<MutableTomlTable>
-
defineOpenTables
private void defineOpenTables()
-