Klasse FindBugsMessages
java.lang.Object
edu.hm.hafner.analysis.parser.findbugs.FindBugsMessages
Parses the FindBugs pattern descriptions and provides access to these HTML messages.
- Autor:
- Ullrich Hafner
-
Verschachtelte Klassen - Übersicht
Verschachtelte KlassenModifizierer und TypKlasseBeschreibungstatic classBug pattern describing a bug type. -
Konstruktorübersicht
Konstruktoren -
Methodenübersicht
Modifizierer und TypMethodeBeschreibunggetMessage(String name) Returns a HTML description for the specified bug.getShortMessage(String name) Returns a short description for the specified bug.parse(InputStream file) Parses the FindBugs pattern description.intsize()Returns the size of this messages cache.
-
Konstruktordetails
-
FindBugsMessages
public FindBugsMessages()Loads the available rules into a map.
-
-
Methodendetails
-
parse
Parses the FindBugs pattern description.- Parameter:
file- XML file with the messages- Gibt zurück:
- a list of parsed patterns
- Löst aus:
SAXException- if we can't parse the fileIOException- if we can't read the file
-
getMessage
Returns a HTML description for the specified bug.- Parameter:
name- name of the bug- Gibt zurück:
- a HTML description
-
getShortMessage
Returns a short description for the specified bug.- Parameter:
name- name of the bug- Gibt zurück:
- a HTML description for the specified bug.
-
size
public int size()Returns the size of this messages cache.- Gibt zurück:
- the number of stored messages (English locale)
-