TomlPrettyPrinter class
A visitor for TOML AST nodes that converts them to a TOML formatted string.
To pretty print an AST node, call the corresponding visit*
method.
To get the TOML formatted string of the visited AST node call the
toString method of the pretty printer.
- Mixed in types
-
- TomlVisitorMixin<
void> - TomlExpressionVisitorMixin<
void> - TomlSimpleKeyVisitorMixin<
void> - TomlValueVisitorMixin<
void> - TomlDateTimeVisitorMixin<
void> - TomlStringVisitorMixin<
void>
- TomlVisitorMixin<
Constructors
- TomlPrettyPrinter()
- Creates a new pretty printer for TOML AST nodes.
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
printFullDate(
TomlFullDate date) → void - Prints a full date.
-
printPartialTime(
TomlPartialTime time) → void - Prints a time without time-zone offset.
-
printTimeZoneOffset(
TomlTimeZoneOffset offset) → void - Prints a time-zone offset.
-
toString(
) → String -
A string representation of this object.
override
-
visit(
TomlNode node) → void -
Visits the given
node
.inherited -
visitArray(
TomlArray array) → void -
Visits the given array value.
override
-
visitArrayTable(
TomlArrayTable table) → void -
Visits the given array of tables header.
override
-
visitBasicString(
TomlBasicString string) → void -
Visits the given basic string.
override
-
visitBoolean(
TomlBoolean boolean) → void -
Visits the given boolean value.
override
-
visitDateTime(
TomlDateTime value) → void -
Visits the given
value
.inherited -
visitDocument(
TomlDocument document) → void -
Visits the given document.
override
-
visitExpression(
TomlExpression expression) → void -
Visits the given
expression
.inherited -
visitFloat(
TomlFloat float) → void -
Visits the given floating point number.
override
-
visitInlineTable(
TomlInlineTable inlineTable) → void -
Visits the given inline table.
override
-
visitInteger(
TomlInteger integer) → void -
Visits the given integer.
override
-
visitKey(
TomlKey key) → void -
Visits the given dotted key.
override
-
visitKeyValuePair(
TomlKeyValuePair pair) → void -
Visits the given key/value pair.
override
-
visitLiteralString(
TomlLiteralString string) → void -
Visits the given literal string.
override
-
visitLocalDate(
TomlLocalDate localDate) → void -
Visits the given local date value.
override
-
visitLocalDateTime(
TomlLocalDateTime localDateTime) → void -
Visits the given local date-time value.
override
-
visitLocalTime(
TomlLocalTime localTime) → void -
Visits the given local time value.
override
-
visitMultilineBasicString(
TomlMultilineBasicString string) → void -
Visits the given multiline basic string.
override
-
visitMultilineLiteralString(
TomlMultilineLiteralString string) → void -
Visits the given multiline literal string.
override
-
visitOffsetDateTime(
TomlOffsetDateTime offsetDateTime) → void -
Visits the given offset date-time value.
override
-
visitQuotedKey(
TomlQuotedKey key) → void -
Visits the given quoted key.
override
-
visitSimpleKey(
TomlSimpleKey key) → void -
Visits the given non-dotted
key
.inherited -
visitStandardTable(
TomlStandardTable table) → void -
Visits the given standard table header.
override
-
visitString(
TomlString value) → void -
Visits the given
value
.inherited -
visitUnquotedKey(
TomlUnquotedKey key) → void -
Visits the given unquoted key.
override
-
visitValue(
TomlValue value) → void -
Visits the given
value
.inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited