Generating generic fields in JCodeModel

I recently wrote an article about generating enums with JCodeModel. Due to the lack of documentation of JCodeModel using it can become very time consuming. I had to put in a lot of time to research a lot of basic stuff. This article will show you how to declare and assign generic fields. Getting started As before to get started you have to create an instance of JCodeModel. You will need this object to generate your classes. ...

October 14, 2020 · Last updated on October 14, 2020

Generating Enums in Java with JCodeModel

I have recently been in the need to generate my own Java classes from csv input. Obviously JCodeModel is your first choice, but it lacks some examples. There is a nice article by Kevin Sookocheff which covers the basic stuff, but it is missing some more in depth examples. In case you are in need to generate Enums - like me - the next following lines might be interesting for you. ...

October 11, 2020 · Last updated on October 11, 2020