void writeJavadocComment ( String methodComment , Writer writer ) throws IOException { // From javadoc if ( methodComment != null ) { methodComment = methodComment . split ( "@" ) [ 0 ] ; int lastIndexOf = methodComment . lastIndexOf ( "\n" ) ; if ( lastIndexOf >= 0 ) { methodComment = methodComment . substring ( 0 , lastIndexOf ) ; } String comment = methodComment . replaceAll ( "\n" , CR + TAB2 + " *" ) ; writer . append ( TAB2 ) . append ( " *" ) . append ( comment ) . append ( CR ) ; } }
write js documentation from javadoc