protected List < JDToken > whiteSpace ( Token token ) { final List < JDToken > wss = new ArrayList < JDToken > ( ) ; Token ws = token . specialToken ; while ( ws != null ) { switch ( ws . kind ) { case WS : wss . add ( _JDWhiteSpace ( ws . image ) ) ; break ; default : // anything else is not whitespace and not our problem. } ws = ws . specialToken ; } Collections . reverse ( wss ) ; return wss ; }
Return all the comments attached to the specified token