private void postProcessClassDocs ( ) { for ( GroovyClassDoc groovyClassDoc : classDocs . values ( ) ) { SimpleGroovyClassDoc classDoc = ( SimpleGroovyClassDoc ) groovyClassDoc ; // potentially add default constructor to class docs (but not interfaces) if ( classDoc . isClass ( ) ) { GroovyConstructorDoc [ ] constructors = classDoc . constructors ( ) ; if ( constructors != null && constructors . length == 0 ) { // add default constructor to doc // name of class for the constructor GroovyConstructorDoc constructorDoc = new SimpleGroovyConstructorDoc ( classDoc . name ( ) , classDoc ) ; // don't forget to tell the class about this default constructor. classDoc . add ( constructorDoc ) ; } } } }
Step through ClassDocs and tie up loose ends