TomlBasicString class

AST node that represents basic TOML strings.

basic-string = quotation-mark *basic-char quotation-mark
Inheritance
Annotations
  • @immutable

Constructors

TomlBasicString(String value)
Creates a new basic TOML string value with the given contents.
factory

Properties

hashCode int
The hash code for this object.
no setteroverride
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
stringType TomlStringType
The type of this string.
no setteroverride
type TomlType
The type of the TOML value represented by this AST node.
no setterinherited
value String
The contents of the string.
final

Methods

acceptStringVisitor<T>(TomlStringVisitor<T> visitor) → T
Invokes the correct visit* method for this string value of the given visitor.
override
acceptValueVisitor<T>(TomlValueVisitor<T> visitor) → T
Invokes the correct visit* method for this value of the given visitor.
inherited
acceptVisitor<T>(TomlVisitor<T> visitor) → T
Invokes the correct visit* method for this value of the given visitor.
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
override

Static Properties

charParser → Parser<String>
Parser for a single character of a basic TOML string.
final
delimiter String
Delimiter for basic TOML strings.
final
parser → Parser<TomlBasicString>
Parser for a basic TOML string value.
final
unescapedParser → Parser<String>
Parser for a single unescaped character of a basic TOML string.
final

Static Methods

canEncode(String value) bool
Tests whether the given string can be represented as a basic string.
escape(String value) String
Escapes all characters of the given string that are not allowed to occur unescaped in a basic string.