private static List < Token > getInlineDocumentation ( Token token , int line ) { List < Token > comments = new ArrayList <> ( ) ; for ( Trivia trivia : token . getTrivia ( ) ) { if ( trivia . isComment ( ) ) { Token triviaToken = trivia . getToken ( ) ; if ( ( triviaToken != null ) && ( triviaToken . getLine ( ) == line ) && ( isDoxygenInlineComment ( triviaToken . getValue ( ) ) ) ) { comments . add ( triviaToken ) ; if ( LOG . isTraceEnabled ( ) ) { LOG . trace ( "Inline doc: " + triviaToken . getValue ( ) ) ; } } } } return comments ; }
Check if inline Doxygen documentation is attached to the given token at specified line