public static List < ParserDescription > getAvailableParsers ( ) { Set < String > groups = Sets . newHashSet ( ) ; for ( AbstractWarningsParser parser : getAllParsers ( ) ) { groups . add ( parser . getGroup ( ) ) ; } List < ParserDescription > sorted = Lists . newArrayList ( ) ; for ( String group : groups ) { sorted . add ( new ParserDescription ( group , getParser ( group ) . getParserName ( ) ) ) ; } Collections . sort ( sorted ) ; return sorted ; }
Returns all available parsers groups sorted alphabetically .