Given an Enumeration like this:
object Enum1 extends Enumeration {
val value1, value2 = Value
val value3 = Value("value3Name")
val notNewAValue = value3
}
And an object like this:
@MyMacro
object MacroObject
How could I access the values of Enum1
(or any other Enumeration passed as a parameter) in the macro annotation MyMacro
?
When I say "values" I'm not considering notNewAValue
, only value1
, value2
and value3
.