I am trying to add an inner class (e.g. interface Listener{}) to a TypeSpec. Also I want to add a field of type Listener to my TypeSpec. How could i achieve something like that?
TypeSpec outerClass = ...;
TypeSpec innerClass = ...;
outerClass.addType(innerClass);
outerClass.addField(...); // How can i add a field of type innerClass?