I’m trying to generate top-level abstract class with JCodeModel library, but I can’t find any way to change class modifiers.
It’s possible for nested classes (JDefinedClass API provides methods that get modifiers as parameters). But for creation of top level classes I found only JCodeModel API methods that get fully qualified name with or without ClassType (class/interface/annotation/enum) as parameters.
Does anybody can suggest me how to change modifiers of JDefinedClass to make it abstract?
You need to create JPackage first and then create class ther.
Something like that.
Hope it helps.