I've found various tools that can generate them using a command line tool. But I need a way to do it programatically as my classes are generated dynamically at runtime.