jaxb-codemodel
jaxb-codemodel copied to clipboard
CodeModel is a Java library for code generators. This content is migrated into JAXB RI. This is for legacy viewing only
JCodeModel cm = new JCodeModel(); cm.parseType( "java.util.ArrayList" ); will throw exception, unless i delete the space after comma, i think it's better to allow blank as they are legal java...
Please add the feature to specify the code style (e.g. tabs/spaces, indentation, newlines after methods/fields etc.) which will be used for building java classes. I can see that JFormatter class...
outer class not added to references collection, when used only nested class. As result used full qualified class name. code to reproduce problem: ``` JCodeModel cm = new JCodeModel(); JDefinedClass...
A construct like synchronized(this.myFieldVar) { // do something } seems to be possible only by body()/**or whatever block**/.directStatement("synchronized(this.myFieldVar)"); JBlock blk=new Block(true, true); // ... body.add(block); While one can live with,...
When using a visitor pattern to generate classes (enums), it would be helpful to get the map of enum constants from JDefinedClass defined so far. I would much appreciate the...
Problem is generating a generic method like: public T foo(..) {..} The problem is in instantiating a JTypeVar. Making the constructor public would solve my problem as follows: JTypeVar Ttype...