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 properResourceLoaderinstead.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 voidaddExample(String example)Deprecated.Rulebuild()Deprecated.voiddefineProperty(PropertyDescriptor<?> descriptor)Deprecated.voiddescription(String description)Deprecated.voidexternalInfoUrl(String externalInfoUrl)Deprecated.voidmaximumLanguageVersion(String maximum)Deprecated.voidmessage(String message)Deprecated.voidminimumLanguageVersion(String minimum)Deprecated.voidpriority(int priorityString)Deprecated.voidsetDeprecated(boolean deprecated)Deprecated.voidsince(String sinceStr)Deprecated.voidusesDFA(boolean usesDFA)Deprecated.voidusesMultifile(boolean usesMultifile)Deprecated.voidusesTyperesolution(boolean usesTyperesolution)Deprecated.
-
-
-
Constructor Detail
-
RuleBuilder
@Deprecated public RuleBuilder(String name, String clazz, String language)
Deprecated.UseRuleBuilder(String, ResourceLoader, String, String)with the properResourceLoaderinstead. 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.
-
-