|
||||||||||
| 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()
Creates a new instance of FindBugsParser. |
|
FindBugsParser(java.util.Collection<java.lang.String> sourceFolders)
Creates a new instance of FindBugsParser. |
|
| Method Summary | |
|---|---|
java.util.Map<java.lang.String,java.lang.String> |
createHashToMessageMapping(java.io.InputStream file)
Creates a mapping of FindBugs warnings to messages. |
java.util.Collection<hudson.plugins.analysis.util.model.FileAnnotation> |
parse(java.io.File file,
java.util.Collection<java.lang.String> sources,
java.lang.String moduleName)
Returns the parsed FindBugs analysis file. |
java.util.Collection<hudson.plugins.analysis.util.model.FileAnnotation> |
parse(java.io.File file,
java.lang.String moduleName)
|
java.util.Collection<hudson.plugins.analysis.util.model.FileAnnotation> |
parse(java.io.InputStream file,
java.util.Collection<java.lang.String> sources,
java.lang.String moduleName,
java.util.Map<java.lang.String,java.lang.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()
FindBugsParser.
public FindBugsParser(java.util.Collection<java.lang.String> sourceFolders)
FindBugsParser.
sourceFolders - a collection of folders to scan for source files. If empty,
the source folders are guessed.| Method Detail |
|---|
public java.util.Collection<hudson.plugins.analysis.util.model.FileAnnotation> parse(java.io.File file,
java.lang.String moduleName)
throws java.lang.reflect.InvocationTargetException
parse in interface hudson.plugins.analysis.core.AnnotationParserjava.lang.reflect.InvocationTargetException
public java.util.Collection<hudson.plugins.analysis.util.model.FileAnnotation> parse(java.io.File file,
java.util.Collection<java.lang.String> sources,
java.lang.String moduleName)
throws java.io.IOException,
org.dom4j.DocumentException,
org.xml.sax.SAXException
file - the FindBugs analysis filesources - a collection of folders to scan for source filesmoduleName - name of maven module
java.io.IOException - if the file could not be parsed
org.dom4j.DocumentException - if the file could not be read
org.xml.sax.SAXException - if the file could not be read
public java.util.Map<java.lang.String,java.lang.String> createHashToMessageMapping(java.io.InputStream file)
throws org.xml.sax.SAXException,
java.io.IOException
file - the FindBugs XML file
org.xml.sax.SAXException - if the file contains no valid XML
java.io.IOException - signals that an I/O exception has occurred.
public java.util.Collection<hudson.plugins.analysis.util.model.FileAnnotation> parse(java.io.InputStream file,
java.util.Collection<java.lang.String> sources,
java.lang.String moduleName,
java.util.Map<java.lang.String,java.lang.String> hashToMessageMapping)
throws java.io.IOException,
org.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
java.io.IOException - if the file could not be parsed
org.dom4j.DocumentException - in case of a parser exception
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||