Uses of Interface
net.sourceforge.pmd.lang.rule.Rule
Packages that use Rule
Package
Description
Logic about reporting: violations, suppression etc.
-
Uses of Rule in net.sourceforge.pmd.lang.rule
Classes in net.sourceforge.pmd.lang.rule that implement RuleModifier and TypeClassDescriptionclassBasic abstract implementation of all parser-independent methods of the Rule interface.classclassThis class represents a Rule which is a reference to Rule defined in another RuleSet.Methods in net.sourceforge.pmd.lang.rule that return RuleModifier and TypeMethodDescriptionAbstractRule.deepCopy()Rule.deepCopy()Creates a new copy of this rule.RuleReference.deepCopy()RuleReference.getRule()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 RuleModifier and TypeMethodDescriptionRuleSet.getRules()Returns the actual Collection of rules in this rulesetMethods in net.sourceforge.pmd.lang.rule with parameters of type RuleModifier and TypeMethodDescriptionAdd a new rule to this ruleset.RuleSet.RuleSetBuilder.addRuleByReference(String ruleSetFileName, Rule rule) Add a new rule by reference to this ruleset.RuleSet.RuleSetBuilder.addRuleIfNotExists(Rule ruleOrRef) Only adds a rule to the ruleset if no rule with the same name for the same language was added before, so that the existent rule configuration won't be overridden.RuleSet.RuleSetBuilder.addRuleReplaceIfExists(Rule rule) Adds a rule.static RuleSetRuleSet.forSingleRule(Rule rule) Creates a new ruleset containing a single rule.static booleanInternalApiBridge.ruleSetApplies(Rule rule, LanguageVersion languageVersion) Method parameters in net.sourceforge.pmd.lang.rule with type arguments of type RuleModifier and TypeMethodDescriptionstatic RuleSetRuleSet.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.voidRuleSet.removeDysfunctionalRules(Collection<Rule> collector) Remove and collect any misconfigured rules.booleanRemove all rules that matched the predicate.Constructors in net.sourceforge.pmd.lang.rule with parameters of type RuleModifierConstructorDescriptionRuleReference(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.impl
Classes in net.sourceforge.pmd.lang.rule.impl that implement RuleModifier and TypeClassDescriptionclassA rule that reports unused suppression annotations and comments. -
Uses of Rule in net.sourceforge.pmd.lang.rule.xpath
Classes in net.sourceforge.pmd.lang.rule.xpath that implement RuleModifier and TypeClassDescriptionfinal classRule 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 -
Uses of Rule in net.sourceforge.pmd.reporting
Methods in net.sourceforge.pmd.reporting that return RuleModifier and TypeMethodDescriptionstatic RuleInternalApiBridge.getRule(RuleContext ruleContext) RuleViolation.getRule()Get the Rule which identified this violation.Report.ConfigurationError.rule()Gets the wrongly configured rule.Methods in net.sourceforge.pmd.reporting with parameters of type RuleModifier and TypeMethodDescriptionprotected booleanAbstractAnnotationSuppressor.annotationParamSuppresses(String stringVal, Rule rule) Return whether one of the annotation params suppresses the given rule.static RuleContextInternalApiBridge.createRuleContext(FileAnalysisListener listener, Rule rule) Create a new RuleContext.static net.sourceforge.pmd.reporting.ParametricRuleViolationInternalApiBridge.createRuleViolation(Rule theRule, FileLocation location, String message, Map<String, String> additionalInfo) Constructors in net.sourceforge.pmd.reporting with parameters of type RuleModifierConstructorDescriptionConfigurationError(Rule theRule, String theIssue) Creates a new configuration error for a specific rule.