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 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 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.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 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 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.
-