Keyworded

it.grypho.scala.leonardo.core.Keyworded
See theKeyworded companion object
trait Keyworded

A kind whose cases are spelled by a word at the prompt — a distribution family, a test, a method slot word (F_0148).

Seventeen kind enums spelled that word three ways — a val word on the case, a companion keyword(k), a fnName — and only three offered the reverse lookup. Each now mixes this in with a concrete keyword, so one question ("what does the user type for this?") has one spelling, and Keyworded.byKeyword answers the reverse for all of them. A trait, not an abstract member on a shared base: the enums are sealed, and mixing a trait in adds an interface rather than an obligation (the MiMa rule NamedFunction follows).

Attributes

Companion
object
Graph
Supertypes
class Object
trait Matchable
class Any
Known subtypes

Members list

Value members

Abstract methods

def keyword: String

The word the grammar reads for this case.

The word the grammar reads for this case.

Attributes

Returns

the keyword