Class Pmd
- java.lang.Object
-
- edu.hm.hafner.analysis.parser.pmd.Pmd
-
public class Pmd extends Object
Java Bean class for warnings of the PMD format.- Author:
- Ullrich Hafner
-
-
Constructor Summary
Constructors Constructor Description Pmd()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddError(PmdError error)Adds a new error.voidaddFile(File file)Adds a new file.Collection<PmdError>getErrors()Returns all errors.Collection<File>getFiles()Returns all files.
-
-
-
Method Detail
-
addFile
public void addFile(File file)
Adds a new file.- Parameters:
file- the file to add
-
addError
public void addError(PmdError error)
Adds a new error.- Parameters:
error- the error to add
-
getFiles
public Collection<File> getFiles()
Returns all files. The returned collection is read-only.- Returns:
- all files
-
getErrors
public Collection<PmdError> getErrors()
Returns all errors. The returned collection is read-only.- Returns:
- all errors
-
-