private void appendComment( Tree node, StringBuilder out ) { if( _docTrees == null ) { return; } TreePath path = _docTrees.getPath( _compilationUnit, node ); if( path != null ) { DocCommentTree docTree = _docTrees.getDocCommentTree( path ); String docComment = _docTrees.getDocComment( path ); if( docComment != null ) { out.append( "/**\n" ); for( String line : docComment.split( "\\r?\\n" ) ) { appendIndent( out ); out.append( " *" ); out.append( line ); out.append( "\n" ); } appendIndent( out ); out.append( " */\n" ); appendIndent( out ); } } }