hudson.plugins.pmd.parser
Class PmdParser

java.lang.Object
  extended by hudson.plugins.pmd.parser.PmdParser
All Implemented Interfaces:
AnnotationParser, java.io.Serializable

public class PmdParser
extends java.lang.Object
implements AnnotationParser

A parser for PMD XML files.

Author:
Ulli Hafner
See Also:
Serialized Form

Constructor Summary
PmdParser()
           
 
Method Summary
 java.lang.String getName()
          Returns the name of this parser.
 java.util.Collection<FileAnnotation> parse(java.io.File file, java.lang.String moduleName)
          Returns the annotations found in the specified file.
 java.util.Collection<FileAnnotation> parse(java.io.InputStream file, java.lang.String moduleName)
          
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PmdParser

public PmdParser()
Method Detail

parse

public java.util.Collection<FileAnnotation> parse(java.io.File file,
                                                  java.lang.String moduleName)
                                           throws java.lang.reflect.InvocationTargetException
Returns the annotations found in the specified file.

Specified by:
parse in interface AnnotationParser
Parameters:
file - the file to parse
moduleName - name of the maven module
Returns:
the parsed result (stored in the module instance)
Throws:
java.lang.reflect.InvocationTargetException - if the file could not be parsed (wrap your exception in this exception)

parse

public java.util.Collection<FileAnnotation> parse(java.io.InputStream file,
                                                  java.lang.String moduleName)
                                           throws java.lang.reflect.InvocationTargetException

Throws:
java.lang.reflect.InvocationTargetException

getName

public java.lang.String getName()
Returns the name of this parser.

Specified by:
getName in interface AnnotationParser
Returns:
the name of this parser


Copyright © 2008. All Rights Reserved.