Class TreeExportConfiguration
java.lang.Object
net.sourceforge.pmd.AbstractConfiguration
net.sourceforge.pmd.util.treeexport.TreeExportConfiguration
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddRelativizeRoot(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.getFile()Returns the paths used to shorten paths output in the report.booleanvoidvoidvoidsetLanguage(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 Details
-
TreeExportConfiguration
-
TreeExportConfiguration
public TreeExportConfiguration()
-
-
Method Details
-
getFormat
-
getLanguage
-
getProperties
-
getFile
-
getLanguageProperties
-
isReadStdin
public boolean isReadStdin() -
setFormat
-
setLanguage
-
setProperties
-
setLanguageProperties
-
setFile
-
setReadStdin
public void setReadStdin(boolean readStdin) -
getMessageReporter
-
setMessageReporter
-
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
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
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
-