Consider nested/chained builders

Description

I think this will require some options-based assistance but the basics are:

  • In addition to setters, consider 0-arity methods that return type Q...

  • ...such that Q has a 0-arity method that returns the Builder class type...

  • ...then this could be used as a setter that invokes builder/to-java via Q

That could be an arbitrary search of methods (since it needs to be recursive) so either it needs guard rails to avoid runaway recursion or it needs additional options passed in to identify whether a given type should be considered a builder?

See for the original work on this.

Environment

None

Assignee

Sean Corfield

Reporter

Sean Corfield

Labels

None

Approval

None

Patch

None

Priority

Major
Configure