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