scair.enums.macros
package scair.enums.macros
Members list
Value members
Concrete methods
Retrieves a given Enum case's companion object and returns an expression of fromOrdinal method as a function.
Retrieves a given Enum case's companion object and returns an expression of fromOrdinal method as a function.
Attributes
- Returns
-
Expr[Int => E]
def enumFromProperty[A <: Enum](list: Expr[Map[String, Attribute]], propName: String)(using evidence$1: Type[A], Quotes): Expr[A]
Generates code to convert an IntegerAttr value to a required enum property argument.
Generates code to convert an IntegerAttr value to a required enum property argument.
Attributes
def enumFromPropertyOption[A <: Enum](list: Expr[Map[String, Attribute]], propName: String)(using evidence$1: Type[A], Quotes): Expr[Option[A]]
Generates code to convert an IntegerAttr value to an Optional enum property argument.
Generates code to convert an IntegerAttr value to an Optional enum property argument.
Attributes
In this article