Class ValueVisitor
- All Implemented Interfaces:
org.antlr.v4.runtime.tree.ParseTreeVisitor<Object>, TomlParserVisitor<Object>
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected ObjectaggregateResult(Object aggregate, Object nextResult) protected Objectprivate Doubleprivate LongVisit a parse tree produced byTomlParser.array().Visit a parse tree produced byTomlParser.binInt().Visit a parse tree produced byTomlParser.decInt().Visit a parse tree produced byTomlParser.falseBool().Visit a parse tree produced byTomlParser.hexInt().Visit a parse tree produced byTomlParser.inlineTable().Visit a parse tree produced byTomlParser.localDate().Visit a parse tree produced byTomlParser.localDateTime().Visit a parse tree produced byTomlParser.localTime().Visit a parse tree produced byTomlParser.octInt().Visit a parse tree produced byTomlParser.offsetDateTime().Visit a parse tree produced byTomlParser.regularFloat().Visit a parse tree produced byTomlParser.regularFloatInf().Visit a parse tree produced byTomlParser.regularFloatNaN().Visit a parse tree produced byTomlParser.string().Visit a parse tree produced byTomlParser.trueBool().Methods inherited from class TomlParserBaseVisitor
visitArrayTable, visitArrayValue, visitArrayValues, visitBasicChar, visitBasicString, visitBasicUnescaped, visitBooleanValue, visitDate, visitDateTime, visitDay, visitEscaped, visitExpression, visitFloatValue, visitHour, visitHourOffset, visitInlineTableValues, visitInteger, visitKey, visitKeyval, visitLiteralBody, visitLiteralString, visitMinute, visitMinuteOffset, visitMlBasicChar, visitMlBasicString, visitMlBasicUnescaped, visitMlLiteralBody, visitMlLiteralString, visitMonth, visitQuotedKey, visitSecond, visitSecondFraction, visitSimpleKey, visitStandardTable, visitTable, visitTime, visitTimeOffset, visitToml, visitTomlKey, visitUnquotedKey, visitVal, visitYearMethods inherited from class org.antlr.v4.runtime.tree.AbstractParseTreeVisitor
shouldVisitNextChild, visit, visitChildren, visitErrorNode, visitTerminalMethods inherited from class 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
-
Field Details
-
zeroFloat
-
version
-
-
Constructor Details
-
ValueVisitor
ValueVisitor(TomlVersion version)
-
-
Method Details
-
visitString
Description copied from class:TomlParserBaseVisitorVisit a parse tree produced byTomlParser.string().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(RuleNode)onctx.- Specified by:
visitStringin interfaceTomlParserVisitor<Object>- Overrides:
visitStringin classTomlParserBaseVisitor<Object>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitDecInt
Description copied from class:TomlParserBaseVisitorVisit a parse tree produced byTomlParser.decInt().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(RuleNode)onctx.- Specified by:
visitDecIntin interfaceTomlParserVisitor<Object>- Overrides:
visitDecIntin classTomlParserBaseVisitor<Object>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitHexInt
Description copied from class:TomlParserBaseVisitorVisit a parse tree produced byTomlParser.hexInt().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(RuleNode)onctx.- Specified by:
visitHexIntin interfaceTomlParserVisitor<Object>- Overrides:
visitHexIntin classTomlParserBaseVisitor<Object>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitOctInt
Description copied from class:TomlParserBaseVisitorVisit a parse tree produced byTomlParser.octInt().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(RuleNode)onctx.- Specified by:
visitOctIntin interfaceTomlParserVisitor<Object>- Overrides:
visitOctIntin classTomlParserBaseVisitor<Object>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitBinInt
Description copied from class:TomlParserBaseVisitorVisit a parse tree produced byTomlParser.binInt().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(RuleNode)onctx.- Specified by:
visitBinIntin interfaceTomlParserVisitor<Object>- Overrides:
visitBinIntin classTomlParserBaseVisitor<Object>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
toLong
-
visitRegularFloat
Description copied from class:TomlParserBaseVisitorVisit a parse tree produced byTomlParser.regularFloat().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(RuleNode)onctx.- Specified by:
visitRegularFloatin interfaceTomlParserVisitor<Object>- Overrides:
visitRegularFloatin classTomlParserBaseVisitor<Object>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitRegularFloatInf
Description copied from class:TomlParserBaseVisitorVisit a parse tree produced byTomlParser.regularFloatInf().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(RuleNode)onctx.- Specified by:
visitRegularFloatInfin interfaceTomlParserVisitor<Object>- Overrides:
visitRegularFloatInfin classTomlParserBaseVisitor<Object>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitRegularFloatNaN
Description copied from class:TomlParserBaseVisitorVisit a parse tree produced byTomlParser.regularFloatNaN().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(RuleNode)onctx.- Specified by:
visitRegularFloatNaNin interfaceTomlParserVisitor<Object>- Overrides:
visitRegularFloatNaNin classTomlParserBaseVisitor<Object>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
toDouble
-
visitTrueBool
Description copied from class:TomlParserBaseVisitorVisit a parse tree produced byTomlParser.trueBool().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(RuleNode)onctx.- Specified by:
visitTrueBoolin interfaceTomlParserVisitor<Object>- Overrides:
visitTrueBoolin classTomlParserBaseVisitor<Object>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitFalseBool
Description copied from class:TomlParserBaseVisitorVisit a parse tree produced byTomlParser.falseBool().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(RuleNode)onctx.- Specified by:
visitFalseBoolin interfaceTomlParserVisitor<Object>- Overrides:
visitFalseBoolin classTomlParserBaseVisitor<Object>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitOffsetDateTime
Description copied from class:TomlParserBaseVisitorVisit a parse tree produced byTomlParser.offsetDateTime().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(RuleNode)onctx.- Specified by:
visitOffsetDateTimein interfaceTomlParserVisitor<Object>- Overrides:
visitOffsetDateTimein classTomlParserBaseVisitor<Object>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitLocalDateTime
Description copied from class:TomlParserBaseVisitorVisit a parse tree produced byTomlParser.localDateTime().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(RuleNode)onctx.- Specified by:
visitLocalDateTimein interfaceTomlParserVisitor<Object>- Overrides:
visitLocalDateTimein classTomlParserBaseVisitor<Object>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitLocalDate
Description copied from class:TomlParserBaseVisitorVisit a parse tree produced byTomlParser.localDate().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(RuleNode)onctx.- Specified by:
visitLocalDatein interfaceTomlParserVisitor<Object>- Overrides:
visitLocalDatein classTomlParserBaseVisitor<Object>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitLocalTime
Description copied from class:TomlParserBaseVisitorVisit a parse tree produced byTomlParser.localTime().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(RuleNode)onctx.- Specified by:
visitLocalTimein interfaceTomlParserVisitor<Object>- Overrides:
visitLocalTimein classTomlParserBaseVisitor<Object>- 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(RuleNode)onctx.- Specified by:
visitArrayin interfaceTomlParserVisitor<Object>- Overrides:
visitArrayin classTomlParserBaseVisitor<Object>- 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(RuleNode)onctx.- Specified by:
visitInlineTablein interfaceTomlParserVisitor<Object>- Overrides:
visitInlineTablein classTomlParserBaseVisitor<Object>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
aggregateResult
-
defaultResult
-