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.impl 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 classAbstractRuleBasic abstract implementation of all parser-independent methods of the Rule interface.classAbstractVisitorRuleclassRuleReferenceThis 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 RuleAbstractRule. deepCopy()RuleRule. deepCopy()Creates a new copy of this rule.RuleRuleReference. deepCopy()RuleRuleReference. getRule()RuleRuleSet. 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 RuleSet.RuleSetBuilderRuleSet.RuleSetBuilder. addRule(Rule newRule)Add a new rule to this ruleset.RuleSet.RuleSetBuilderRuleSet.RuleSetBuilder. addRuleByReference(String ruleSetFileName, Rule rule)Add a new rule by reference to this ruleset.RuleSet.RuleSetBuilderRuleSet.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.RuleSetBuilderRuleSet.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 Rule Modifier and Type Method Description static 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.booleanRuleSet.RuleSetBuilder. removeIf(Predicate<? super Rule> filter)Remove all rules that matched the predicate.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.impl
Classes in net.sourceforge.pmd.lang.rule.impl that implement Rule Modifier and Type Class Description classUnnecessaryPmdSuppressionRuleA 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 Rule Modifier and Type Class Description classXPathRuleRule 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 RuleXPathRule. deepCopy() -
Uses of Rule in net.sourceforge.pmd.reporting
Methods in net.sourceforge.pmd.reporting that return Rule Modifier and Type Method Description static RuleInternalApiBridge. getRule(RuleContext ruleContext)RuleRuleViolation. getRule()Get the Rule which identified this violation.RuleReport.ConfigurationError. rule()Gets the wrongly configured rule.Methods in net.sourceforge.pmd.reporting with parameters of type Rule Modifier and Type Method Description protected 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 Rule Constructor Description ConfigurationError(Rule theRule, String theIssue)Creates a new configuration error for a specific rule.
-