Keyword type (joe)


A Keyword is a symbolic value, and one of the basic Joe types. A keyword is an identifier with a leading hash symbol, e.g., #flag. They are commonly used in Joe code in place of enumerations, especially to identify options in variable length argument lists.

Initializer

Methods

Keyword Initializer


Keyword(name) → Keyword

Creates a new keyword given its name, without or without the leading #.

Methods


keyword.name()


keyword.name() → String

Gets the keyword's name, omitting the leading #.

keyword.toString()


keyword.toString() → String

Gets the keyword's string representation, including the leading #.