protected void defaultProcess ( Doc doc , boolean fixLeadingSpaces ) { try { StringBuilder buf = new StringBuilder ( ) ; buf . append ( getOptions ( ) . toHtml ( doc . commentText ( ) , fixLeadingSpaces ) ) ; buf . append ( ' ' ) ; for ( Tag tag : doc . tags ( ) ) { processTag ( tag , buf ) ; buf . append ( ' ' ) ; } doc . setRawCommentText ( buf . toString ( ) ) ; } catch ( final ParserRuntimeException e ) { if ( doc instanceof RootDoc ) { printError ( new SourcePosition ( ) { @ Override public File file ( ) { return options . getOverviewFile ( ) ; } @ Override public int line ( ) { return 0 ; } @ Override public int column ( ) { return 0 ; } } , e . getMessage ( ) ) ; } else { printError ( doc . position ( ) , e . getMessage ( ) ) ; } } }
Default processing of any documentation node .