Uses of Interface
net.sourceforge.pmd.lang.rule.Rule
-
Packages that use Rule Package Description net.sourceforge.pmd.lang.rule net.sourceforge.pmd.lang.rule.xpath net.sourceforge.pmd.reporting Logic about reporting: violations, suppression etc. -
-
Uses of Rule in net.sourceforge.pmd.lang.rule
Classes in net.sourceforge.pmd.lang.rule that implement Rule Modifier and Type Class Description class
AbstractRule
Basic abstract implementation of all parser-independent methods of the Rule interface.class
AbstractVisitorRule
class
RuleReference
This class represents a Rule which is a reference to Rule defined in another RuleSet.Methods in net.sourceforge.pmd.lang.rule that return Rule Modifier and Type Method Description Rule
AbstractRule. deepCopy()
Rule
Rule. deepCopy()
Creates a new copy of this rule.Rule
RuleReference. deepCopy()
Rule
RuleReference. getRule()
Rule
RuleSet. getRuleByName(String ruleName)
Returns the first Rule found with the given name (case-sensitive).Methods in net.sourceforge.pmd.lang.rule that return types with arguments of type Rule Modifier and Type Method Description Collection<Rule>
RuleSet. getRules()
Returns the actual Collection of rules in this rulesetMethods in net.sourceforge.pmd.lang.rule with parameters of type Rule Modifier and Type Method Description static RuleSet
RuleSet. forSingleRule(Rule rule)
Creates a new ruleset containing a single rule.static boolean
InternalApiBridge. ruleSetApplies(Rule rule, LanguageVersion languageVersion)
Method parameters in net.sourceforge.pmd.lang.rule with type arguments of type Rule Modifier and Type Method Description static RuleSet
RuleSet. create(String name, String description, String fileName, Collection<Pattern> excludePatterns, Collection<Pattern> includePatterns, Iterable<? extends Rule> rules)
Creates a new ruleset with the given metadata such as name, description, fileName, exclude/include patterns are used.void
RuleSet. removeDysfunctionalRules(Collection<Rule> collector)
Remove and collect any misconfigured rules.Constructors in net.sourceforge.pmd.lang.rule with parameters of type Rule Constructor Description RuleReference(Rule theRule, net.sourceforge.pmd.lang.rule.internal.RuleSetReference theRuleSetReference)
Create a new reference to the given rule. -
Uses of Rule in net.sourceforge.pmd.lang.rule.xpath
Classes in net.sourceforge.pmd.lang.rule.xpath that implement Rule Modifier and Type Class Description class
XPathRule
Rule that tries to match an XPath expression against a DOM view of an AST.Methods in net.sourceforge.pmd.lang.rule.xpath that return Rule Modifier and Type Method Description Rule
XPathRule. deepCopy()
-
Uses of Rule in net.sourceforge.pmd.reporting
Methods in net.sourceforge.pmd.reporting that return Rule Modifier and Type Method Description static Rule
InternalApiBridge. getRule(RuleContext ruleContext)
Rule
RuleViolation. getRule()
Get the Rule which identified this violation.Rule
Report.ConfigurationError. rule()
Gets the wrongly configured rule.Methods in net.sourceforge.pmd.reporting with parameters of type Rule Modifier and Type Method Description static RuleContext
InternalApiBridge. createRuleContext(FileAnalysisListener listener, Rule rule)
Create a new RuleContext.static net.sourceforge.pmd.reporting.ParametricRuleViolation
InternalApiBridge. createRuleViolation(Rule theRule, FileLocation location, String message, Map<String,String> additionalInfo)
Constructors in net.sourceforge.pmd.reporting with parameters of type Rule Constructor Description ConfigurationError(Rule theRule, String theIssue)
Creates a new configuration error for a specific rule.
-