Package net.sourceforge.pmd.rules
Class RuleBuilder
- java.lang.Object
-
- net.sourceforge.pmd.rules.RuleBuilder
-
@InternalApi @Deprecated public class RuleBuilder extends Object
Deprecated.Builds a rule, validating its parameters throughout. The builder can define property descriptors, but not override them. For that, useRuleFactory.decorateRule(Rule, RuleSetReference, Element)
.- Since:
- 6.0.0
- Author:
- Clément Fournier
-
-
Constructor Summary
Constructors Constructor Description RuleBuilder(String name, String clazz, String language)
Deprecated.UseRuleBuilder(String, ResourceLoader, String, String)
with the properResourceLoader
instead.RuleBuilder(String name, ResourceLoader resourceLoader, String clazz, String language)
Deprecated.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description void
addExample(String example)
Deprecated.Rule
build()
Deprecated.void
defineProperty(PropertyDescriptor<?> descriptor)
Deprecated.void
description(String description)
Deprecated.void
externalInfoUrl(String externalInfoUrl)
Deprecated.void
maximumLanguageVersion(String maximum)
Deprecated.void
message(String message)
Deprecated.void
minimumLanguageVersion(String minimum)
Deprecated.void
priority(int priorityString)
Deprecated.void
setDeprecated(boolean deprecated)
Deprecated.void
since(String sinceStr)
Deprecated.void
usesDFA(boolean usesDFA)
Deprecated.void
usesMultifile(boolean usesMultifile)
Deprecated.void
usesTyperesolution(boolean usesTyperesolution)
Deprecated.
-
-
-
Constructor Detail
-
RuleBuilder
@Deprecated public RuleBuilder(String name, String clazz, String language)
Deprecated.UseRuleBuilder(String, ResourceLoader, String, String)
with the properResourceLoader
instead. The resource loader is used to load the rule implementation class from the class path.
-
RuleBuilder
public RuleBuilder(String name, ResourceLoader resourceLoader, String clazz, String language)
Deprecated.
-
-
Method Detail
-
usesDFA
public void usesDFA(boolean usesDFA)
Deprecated.
-
usesMultifile
public void usesMultifile(boolean usesMultifile)
Deprecated.
-
usesTyperesolution
public void usesTyperesolution(boolean usesTyperesolution)
Deprecated.
-
minimumLanguageVersion
public void minimumLanguageVersion(String minimum)
Deprecated.
-
maximumLanguageVersion
public void maximumLanguageVersion(String maximum)
Deprecated.
-
since
public void since(String sinceStr)
Deprecated.
-
externalInfoUrl
public void externalInfoUrl(String externalInfoUrl)
Deprecated.
-
message
public void message(String message)
Deprecated.
-
defineProperty
public void defineProperty(PropertyDescriptor<?> descriptor)
Deprecated.
-
setDeprecated
public void setDeprecated(boolean deprecated)
Deprecated.
-
description
public void description(String description)
Deprecated.
-
addExample
public void addExample(String example)
Deprecated.
-
priority
public void priority(int priorityString)
Deprecated.
-
build
public Rule build() throws ClassNotFoundException, IllegalAccessException, InstantiationException
Deprecated.
-
-