Class TreeExportConfiguration
- java.lang.Object
-
- net.sourceforge.pmd.AbstractConfiguration
-
- net.sourceforge.pmd.util.treeexport.TreeExportConfiguration
-
public class TreeExportConfiguration extends AbstractConfiguration
-
-
Constructor Summary
Constructors Constructor Description TreeExportConfiguration()TreeExportConfiguration(LanguageRegistry registry)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddRelativizeRoot(Path path)Set the path used to shorten paths output in the report.voidaddRelativizeRoots(List<Path> paths)Add several paths to shorten paths that are output in the report.PathgetFile()StringgetFormat()LanguagegetLanguage()PropertiesgetLanguageProperties()PmdReportergetMessageReporter()PropertiesgetProperties()List<Path>getRelativizeRoots()Returns the paths used to shorten paths output in the report.booleanisReadStdin()voidsetFile(Path file)voidsetFormat(String format)voidsetLanguage(Language language)voidsetLanguageProperties(Properties properties)voidsetMessageReporter(PmdReporter messageReporter)voidsetProperties(Properties properties)voidsetReadStdin(boolean readStdin)-
Methods inherited from class net.sourceforge.pmd.AbstractConfiguration
addInputPath, checkLanguageIsAcceptable, collectFilesRecursively, collectFilesRecursively, getExcludes, getForceLanguageVersion, getIgnoreFile, getInputFile, getInputPathList, getLanguageProperties, getLanguageRegistry, getLanguageVersionDiscoverer, getLanguageVersionOfFile, getReporter, getReportFilePath, getSourceEncoding, getUri, isFailOnError, isFailOnViolation, isForceLanguageVersion, setDefaultLanguageVersion, setDefaultLanguageVersions, setExcludes, setFailOnError, setFailOnViolation, setForceLanguageVersion, setIgnoreFilePath, setInputFilePath, setInputPathList, setInputUri, setOnlyRecognizeLanguage, setReporter, setReportFile, setSourceEncoding
-
-
-
-
Constructor Detail
-
TreeExportConfiguration
public TreeExportConfiguration(LanguageRegistry registry)
-
TreeExportConfiguration
public TreeExportConfiguration()
-
-
Method Detail
-
getFormat
public String getFormat()
-
getLanguage
public Language getLanguage()
-
getProperties
public Properties getProperties()
-
getFile
public Path getFile()
-
getLanguageProperties
public Properties getLanguageProperties()
-
isReadStdin
public boolean isReadStdin()
-
setFormat
public void setFormat(String format)
-
setLanguage
public void setLanguage(Language language)
-
setProperties
public void setProperties(Properties properties)
-
setLanguageProperties
public void setLanguageProperties(Properties properties)
-
setFile
public void setFile(Path file)
-
setReadStdin
public void setReadStdin(boolean readStdin)
-
getMessageReporter
public PmdReporter getMessageReporter()
-
setMessageReporter
public void setMessageReporter(PmdReporter messageReporter)
-
getRelativizeRoots
public List<Path> getRelativizeRoots()
Description copied from class:AbstractConfigurationReturns the paths used to shorten paths output in the report.- If the list is empty, then paths are not touched
- If the list is non-empty, then source file paths are relativized with all the items in the list. The shortest of these relative paths is taken as the display name of the file.
- Overrides:
getRelativizeRootsin classAbstractConfiguration
-
addRelativizeRoot
public void addRelativizeRoot(Path path)
Description copied from class:AbstractConfigurationSet the path used to shorten paths output in the report. The path does not need to exist. If it exists, it must point to a directory and not a file. SeeAbstractConfiguration.getRelativizeRoots()for the interpretation.If several paths are added, the shortest paths possible are built.
- Overrides:
addRelativizeRootin classAbstractConfiguration- Parameters:
path- A path
-
addRelativizeRoots
public void addRelativizeRoots(List<Path> paths)
Description copied from class:AbstractConfigurationAdd several paths to shorten paths that are output in the report. SeeAbstractConfiguration.addRelativizeRoot(Path).- Overrides:
addRelativizeRootsin classAbstractConfiguration- Parameters:
paths- A list of non-null paths
-
-