ExtendJ adds one method and field for each switch statement with an enum-typed switch expression. This is done in order to transform the switch from an enum-indexed switch to an integer-indexed switch. However, the transformation is currently done using side effects. As usual this has several down-sides and it would thus be nice to remove these side effects.
I have been working on a refactoring to remove these side effects which works by using NTAs to compute the extra fields/methods. These NTAs are used during code generation, but only if there exist enum switch statements.