Package net.sourceforge.pmd.cli
Class PMDParameters
- java.lang.Object
-
- net.sourceforge.pmd.cli.PMDParameters
-
public class PMDParameters extends Object
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classPMDParameters.PropertyConverterstatic classPMDParameters.RulePriorityConverterDeprecated.Will be removed in 7.0.0static classPMDParameters.RulePriorityValidator
-
Constructor Summary
Constructors Constructor Description PMDParameters()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description StringgetAuxclasspath()StringgetEncoding()StringgetFileListPath()StringgetFormat()StringgetIgnoreListPath()StringgetLanguage()RulePrioritygetMinimumPriority()PropertiesgetProperties()StringgetReportfile()StringgetRulesets()StringgetSourceDir()StringgetSuppressmarker()IntegergetThreads()StringgetUri()StringgetVersion()booleanisBenchmark()booleanisDebug()booleanisFailOnViolation()booleanisHelp()booleanisIgnoreIncrementalAnalysis()booleanisShortnames()booleanisShowsuppressed()booleanisStress()voidsetUri(String uri)PMDConfigurationtoConfiguration()Converts these parameters into a configuration.static PMDConfigurationtransformParametersIntoConfiguration(PMDParameters params)Deprecated.To be removed in 7.0.0.
-
-
-
Method Detail
-
toConfiguration
public PMDConfiguration toConfiguration()
Converts these parameters into a configuration.- Returns:
- A new PMDConfiguration corresponding to these parameters
- Throws:
IllegalArgumentException- if the parameters are inconsistent or incomplete
-
isIgnoreIncrementalAnalysis
public boolean isIgnoreIncrementalAnalysis()
-
transformParametersIntoConfiguration
@Deprecated public static PMDConfiguration transformParametersIntoConfiguration(PMDParameters params)
Deprecated.To be removed in 7.0.0. Use the instance methodtoConfiguration().
-
isDebug
public boolean isDebug()
-
isHelp
public boolean isHelp()
-
getEncoding
public String getEncoding()
-
getThreads
public Integer getThreads()
-
isBenchmark
public boolean isBenchmark()
-
isStress
public boolean isStress()
-
isShortnames
public boolean isShortnames()
-
isShowsuppressed
public boolean isShowsuppressed()
-
getSuppressmarker
public String getSuppressmarker()
-
getMinimumPriority
public RulePriority getMinimumPriority()
-
getProperties
public Properties getProperties()
-
getReportfile
public String getReportfile()
-
getVersion
public String getVersion()
-
getLanguage
public String getLanguage()
-
getAuxclasspath
public String getAuxclasspath()
-
getRulesets
public String getRulesets()
-
getSourceDir
public String getSourceDir()
-
getFileListPath
public String getFileListPath()
-
getIgnoreListPath
public String getIgnoreListPath()
-
getFormat
public String getFormat()
-
isFailOnViolation
public boolean isFailOnViolation()
-
getUri
public String getUri()
- Returns:
- the uri alternative to source directory.
-
setUri
public void setUri(String uri)
- Parameters:
uri- the uri specifying the source directory.
-
-