|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objecthudson.plugins.dry.parser.AbstractDryParser
hudson.plugins.dry.parser.cpd.CpdParser
public class CpdParser
A parser for PMD's CPD XML files.
| Constructor Summary | |
|---|---|
CpdParser()
|
|
| Method Summary | |
|---|---|
boolean |
accepts(java.io.InputStream file)
Returns whether this parser accepts the specified stream as a valid file. |
java.util.Collection<FileAnnotation> |
parse(java.io.InputStream file,
java.lang.String moduleName)
Returns the duplication annotations found in the specified file. |
| Methods inherited from class hudson.plugins.dry.parser.AbstractDryParser |
|---|
parse |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public CpdParser()
| Method Detail |
|---|
public boolean accepts(java.io.InputStream file)
accepts in class AbstractDryParserfile - the file to parse
true if this parser accepts the specified stream as
a valid file, false if the parser can't read this file
public java.util.Collection<FileAnnotation> parse(java.io.InputStream file,
java.lang.String moduleName)
throws java.lang.reflect.InvocationTargetException
parse in class AbstractDryParserfile - the file to parsemoduleName - name of the maven module
java.lang.reflect.InvocationTargetException - if the file could not be parsed (wrap your actual exception in this exception)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||