EnumToEnum

data class EnumToEnum(val sourceEnumFqn: String, val targetEnumFqn: String, val entryNames: List<String>) : MappingStrategy

Enum → Enum mapping by matching constant names (parity with the String↔Enum bridges above) — no wire type involved. entryNames is every SOURCE enum entry's simple name, in declaration order; each is guaranteed (by construction — TypeMatcher validates this at resolution time) to have a same-named entry on the target enum, so the generator emits an exhaustive when with no else branch and this conversion can never fail.

Constructors

Link copied to clipboard
constructor(sourceEnumFqn: String, targetEnumFqn: String, entryNames: List<String>)

Properties

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard