Skip to main content

NameInterface

interface NameInterface

Inheritors

Name

Functions

NameSummary
formatabstract fun format(format: NameFormat): String
Formats a name into a string based on the available output formats. The default separator is .
isSlnabstract fun isSln(): Boolean
Returns whether this name is a second-level name (Ex. test.iota)
isSubnameabstract fun isSubname(): Boolean
Returns whether this name is a subname (Ex. sub.test.iota)
labelabstract fun label(index: UInt): String?
Get the label at the given index
labelsabstract 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.
numLabelsabstract fun numLabels(): UInt
Returns the number of labels including TLN.
parentabstract fun parent(): Name?
parents; second-level names return None.