|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objecthudson.plugins.findbugs.parser.FindBugsParser
public class FindBugsParser
A parser for the native FindBugs XML files (ant task, batch file or maven-findbugs-plugin >= 1.2).
| Constructor Summary | |
|---|---|
FindBugsParser(boolean isRankActivated)
Creates a new instance of FindBugsParser. |
|
FindBugsParser(Collection<String> sourceFolders,
boolean isRankActivated)
Creates a new instance of FindBugsParser. |
|
| Method Summary | |
|---|---|
Map<String,String> |
createHashToMessageMapping(InputStream file)
Creates a mapping of FindBugs warnings to messages. |
Collection<hudson.plugins.analysis.util.model.FileAnnotation> |
parse(File file,
Collection<String> sources,
String moduleName)
Returns the parsed FindBugs analysis file. |
Collection<hudson.plugins.analysis.util.model.FileAnnotation> |
parse(File file,
String moduleName)
|
Collection<hudson.plugins.analysis.util.model.FileAnnotation> |
parse(InputStream file,
Collection<String> sources,
String moduleName,
Map<String,String> hashToMessageMapping)
Returns the parsed FindBugs analysis file. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public FindBugsParser(boolean isRankActivated)
FindBugsParser.
isRankActivated - determines whether to use the rank when evaluation the
priority
public FindBugsParser(Collection<String> sourceFolders,
boolean isRankActivated)
FindBugsParser.
sourceFolders - a collection of folders to scan for source files. If empty,
the source folders are guessed.isRankActivated - determines whether to use the rank when evaluation the
priority| Method Detail |
|---|
public Collection<hudson.plugins.analysis.util.model.FileAnnotation> parse(File file,
String moduleName)
throws InvocationTargetException
parse in interface hudson.plugins.analysis.core.AnnotationParserInvocationTargetException
public Collection<hudson.plugins.analysis.util.model.FileAnnotation> parse(File file,
Collection<String> sources,
String moduleName)
throws IOException,
org.hudson.dom4j.DocumentException,
SAXException
file - the FindBugs analysis filesources - a collection of folders to scan for source filesmoduleName - name of maven module
IOException - if the file could not be parsed
org.hudson.dom4j.DocumentException - if the file could not be read
SAXException - if the file could not be read
public Map<String,String> createHashToMessageMapping(InputStream file)
throws SAXException,
IOException
file - the FindBugs XML file
SAXException - if the file contains no valid XML
IOException - signals that an I/O exception has occurred.
public Collection<hudson.plugins.analysis.util.model.FileAnnotation> parse(InputStream file,
Collection<String> sources,
String moduleName,
Map<String,String> hashToMessageMapping)
throws IOException,
org.hudson.dom4j.DocumentException
file - the FindBugs analysis filesources - a collection of folders to scan for source filesmoduleName - name of maven modulehashToMessageMapping - mapping of hash codes to messages
IOException - if the file could not be parsed
org.hudson.dom4j.DocumentException - in case of a parser exception
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||