Package net.sourceforge.pmd.cli
Class PMDParameters
- java.lang.Object
-
- net.sourceforge.pmd.cli.PMDParameters
-
public class PMDParameters extends java.lang.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 java.lang.StringgetAuxclasspath()java.lang.StringgetEncoding()java.lang.StringgetFileListPath()java.lang.StringgetFormat()java.lang.StringgetIgnoreListPath()java.lang.StringgetLanguage()RulePrioritygetMinimumPriority()java.util.PropertiesgetProperties()java.lang.StringgetReportfile()java.lang.StringgetRulesets()java.lang.StringgetSourceDir()java.lang.StringgetSuppressmarker()java.lang.IntegergetThreads()java.lang.StringgetUri()java.lang.StringgetVersion()booleanisBenchmark()booleanisDebug()booleanisFailOnViolation()booleanisHelp()booleanisIgnoreIncrementalAnalysis()booleanisShortnames()booleanisShowsuppressed()booleanisStress()voidsetUri(java.lang.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:
java.lang.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 java.lang.String getEncoding()
-
getThreads
public java.lang.Integer getThreads()
-
isBenchmark
public boolean isBenchmark()
-
isStress
public boolean isStress()
-
isShortnames
public boolean isShortnames()
-
isShowsuppressed
public boolean isShowsuppressed()
-
getSuppressmarker
public java.lang.String getSuppressmarker()
-
getMinimumPriority
public RulePriority getMinimumPriority()
-
getProperties
public java.util.Properties getProperties()
-
getReportfile
public java.lang.String getReportfile()
-
getVersion
public java.lang.String getVersion()
-
getLanguage
public java.lang.String getLanguage()
-
getAuxclasspath
public java.lang.String getAuxclasspath()
-
getRulesets
public java.lang.String getRulesets()
-
getSourceDir
public java.lang.String getSourceDir()
-
getFileListPath
public java.lang.String getFileListPath()
-
getIgnoreListPath
public java.lang.String getIgnoreListPath()
-
getFormat
public java.lang.String getFormat()
-
isFailOnViolation
public boolean isFailOnViolation()
-
getUri
public java.lang.String getUri()
- Returns:
- the uri alternative to source directory.
-
setUri
public void setUri(java.lang.String uri)
- Parameters:
uri- the uri specifying the source directory.
-
-