|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objecthudson.plugins.findbugs.parser.NativeFindBugsParser
public class NativeFindBugsParser
A parser for the native FindBugs XML files (ant task, batch file or maven-findbugs-plugin >= 1.2).
| Constructor Summary | |
|---|---|
NativeFindBugsParser()
|
|
| 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.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 NativeFindBugsParser()
| Method Detail |
|---|
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
org.xml.sax.SAXException
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 | |||||||||