itomlnode.md 2.2 KB


id: itomlnode title: ITomlNode

sidebar_label: ITomlNode

A toml node.

Methods

Method NodeType:ETomlNodeType()

Returns the type of this node.


Method IsTable:Int()

Returns True if the node is a table.


Method IsArray:Int()

Returns True if the node is an array.


Method IsString:Int()

Returns True if the node is a String.


Method IsInteger:Int()

Returns True if the node is an integer.


Method IsFloatingPoint:Int()

Returns True if the node is a floating point number.


Method IsBoolean:Int()

Returns True if the node is a boolean.


Method IsDate:Int()

Returns True if the node is a date.


Method IsTime:Int()

Returns True if the node is a time.


Method IsDateTime:Int()

Returns True if the node is a date time.


Method AsTable:TTomlTable()

Returns this node as a table, or throws a TUnsupportedNodeError.


Method AsArray:TTomlArray()

Returns this node as an array, or throws a TUnsupportedNodeError.


Method AsString:String()

Returns this node as a String, or throws a TUnsupportedNodeError.


Method AsLong:Long()

Returns this node as a Long, or throws a TUnsupportedNodeError.


Method AsDouble:Double()

Returns this node as a Double, or throws a TUnsupportedNodeError.


Method AsBoolean:Int()

Returns this node as a boolean, or throws a TUnsupportedNodeError.


Method AsDate:STomlDate()

Returns this node as a date, or throws a TUnsupportedNodeError.


Method AsTime:STomlTime()

Returns this node as a time, or throws a TUnsupportedNodeError.


Method AsDateTime:STomlDateTime()

Returns this node as a date time, or throws a TUnsupportedNodeError.