public List < JavaComment > paramDoc ( final String paramName , List < JavaComment > originals ) { final List < JavaComment > results = new ArrayList < JavaComment > ( originals . size ( ) ) ; for ( JavaComment original : originals ) { original . _switch ( new JavaComment . SwitchBlock ( ) { @ Override public void _case ( JavaDocComment x ) { paramDocSections ( paramName , x . tagSections , results ) ; } @ Override public void _case ( JavaBlockComment x ) { // skip } @ Override public void _case ( JavaEOLComment x ) { // skip } } ) ; } return results ; }
Produce a copy of a list of JavaDoc comments by pulling specified parameter tags out of an orignal list of comments . Block and EOL comments are skipped . JavaDoc comments are stripped down to only have the content of the specified param tag