Feature: Expose `_parameters` in `MethodBuilder`
zsr2531 opened this issue · 3 comments
Summary: There is no way to get the parameters of a method, so maybe make that field a public property instead?
A very nasty workaround to solve this issue is to use reflection, but yeah...
what is the purpose of making the parameters public? it'd be helpful to know the problem you're looking to solve there
For my use case, I am using this library to create classes that read/write JVM attributes. If my generator encounters a non-primitive typed property (ie. a user defined class or a List for example), it creates a BuildX
method so that the generated code looks nicer and conforms to the style of builders/factories that are written by hand. (example) Obviously, I don't want to generate 2 methods for the same type, as that would result in invalid code. So I check if there has already been a method generated for it. (example)