Skip to main content

Name

open class Name : Disposable, AutoCloseable, NameInterface

Functions

NameSummary
close@Synchronized
open override fun close()
destroyopen override fun destroy()
equalsopen operator override fun equals(other: Any?): Boolean
formatopen override fun format(format: NameFormat): String
Formats a name into a string based on the available output formats. The default separator is .
hashCodeopen override fun hashCode(): Int
isSlnopen override fun isSln(): Boolean
Returns whether this name is a second-level name (Ex. test.iota)
isSubnameopen override fun isSubname(): Boolean
Returns whether this name is a subname (Ex. sub.test.iota)
labelopen override fun label(index: UInt): String?
Get the label at the given index
labelsopen override fun labels(): List<String>
Get all of the labels. NOTE: These are in reverse order starting with the top-level name and proceeding to subnames.
numLabelsopen override fun numLabels(): UInt
Returns the number of labels including TLN.
parentopen override fun parent(): Name?
parents; second-level names return None.
toStringopen override fun toString(): String

Companion object functions

NameSummary
fromStrfun fromStr(s: String): Name