Uses of Interface
net.sourceforge.pmd.Rule
-
Packages that use Rule Package Description net.sourceforge.pmd This is the PMD programming mistake detector.net.sourceforge.pmd.benchmark net.sourceforge.pmd.cache The violation caching system.net.sourceforge.pmd.lang.dfa net.sourceforge.pmd.lang.rule net.sourceforge.pmd.lang.rule.stat net.sourceforge.pmd.properties net.sourceforge.pmd.renderers net.sourceforge.pmd.rules net.sourceforge.pmd.util -
-
Uses of Rule in net.sourceforge.pmd
Methods in net.sourceforge.pmd that return Rule Modifier and Type Method Description RuleRule. deepCopy()Creates a new copy of this rule.RuleRuleViolation. getRule()Get the Rule which identified this violation.RuleRuleSet. getRuleByName(java.lang.String ruleName)Returns the first Rule found with the given name (case-sensitive).RuleRuleSets. getRuleByName(java.lang.String ruleName)Returns the first Rule found with the given name.RuleReport.ConfigurationError. rule()Gets the wrongly configured ruleMethods in net.sourceforge.pmd that return types with arguments of type Rule Modifier and Type Method Description java.util.Set<Rule>RuleSets. getAllRules()Return all rules from all rulesets.java.util.Collection<Rule>RuleSet. getRules()Returns the actual Collection of rules in this rulesetMethods in net.sourceforge.pmd with parameters of type Rule Modifier and Type Method Description static booleanRuleSet. applies(Rule rule, LanguageVersion languageVersion)Does the given Rule apply to the given LanguageVersion? If so, the Language must be the same and be between the minimum and maximums versions on the Rule.RuleSetRuleSetFactory. createSingleRuleRuleSet(Rule rule)Creates a new RuleSet containing a single rule.Method parameters in net.sourceforge.pmd with type arguments of type Rule Modifier and Type Method Description voidRuleSet. removeDysfunctionalRules(java.util.Collection<Rule> collector)Remove and collect any misconfigured rules.voidRuleSets. removeDysfunctionalRules(java.util.Collection<Rule> collector)Remove and collect any rules that report problems.Constructors in net.sourceforge.pmd with parameters of type Rule Constructor Description ConfigurationError(Rule theRule, java.lang.String theIssue)Creates a new configuration error for a specific rule. -
Uses of Rule in net.sourceforge.pmd.benchmark
Fields in net.sourceforge.pmd.benchmark declared as Rule Modifier and Type Field Description RuleRuleDuration. ruleDeprecated.Constructors in net.sourceforge.pmd.benchmark with parameters of type Rule Constructor Description RuleDuration(long elapsed, Rule rule)Deprecated. -
Uses of Rule in net.sourceforge.pmd.cache
Methods in net.sourceforge.pmd.cache that return Rule Modifier and Type Method Description RuleCachedRuleViolation. getRule()Deprecated.RuleCachedRuleMapper. getRuleForClass(java.lang.String className, java.lang.String ruleName, java.lang.String languageName)Deprecated.Finds a rule instance for the given rule class name, name and target language -
Uses of Rule in net.sourceforge.pmd.lang.dfa
Subinterfaces of Rule in net.sourceforge.pmd.lang.dfa Modifier and Type Interface Description interfaceDFAGraphRule -
Uses of Rule in net.sourceforge.pmd.lang.rule
Classes in net.sourceforge.pmd.lang.rule that implement Rule Modifier and Type Class Description classAbstractDelegateRuleDeprecated.This is only relevant toRuleReference, but prevents sharing the implementation ofAbstractPropertySource.classAbstractRuleBasic abstract implementation of all parser-independent methods of the Rule interface.classMockRuleThis is a Rule implementation which can be used in scenarios where an actual functional Rule is not needed.classRuleReferenceThis class represents a Rule which is a reference to Rule defined in another RuleSet.classXPathRuleRule that tries to match an XPath expression against a DOM view of an AST.Fields in net.sourceforge.pmd.lang.rule declared as Rule Modifier and Type Field Description protected RuleParametricRuleViolation. ruleFields in net.sourceforge.pmd.lang.rule with type parameters of type Rule Modifier and Type Field Description protected java.util.Map<RuleSet,java.util.List<Rule>>AbstractRuleChainVisitor. ruleSetRulesThese are all the rules participating in the RuleChain, grouped by RuleSet.Methods in net.sourceforge.pmd.lang.rule that return Rule Modifier and Type Method Description RuleAbstractRule. deepCopy()RuleRuleReference. deepCopy()RuleAbstractDelegateRule. getRule()Deprecated.RuleParametricRuleViolation. getRule()Methods in net.sourceforge.pmd.lang.rule with parameters of type Rule Modifier and Type Method Description voidAbstractRuleChainVisitor. add(RuleSet ruleSet, Rule rule)voidRuleChainVisitor. add(RuleSet ruleSet, Rule rule)Add the given rule to the visitor.voidAbstractRuleViolationFactory. addViolation(RuleContext ruleContext, Rule rule, Node node, java.lang.String message, int beginLine, int endLine, java.lang.Object[] args)voidAbstractRuleViolationFactory. addViolation(RuleContext ruleContext, Rule rule, Node node, java.lang.String message, java.lang.Object[] args)voidRuleViolationFactory. addViolation(RuleContext ruleContext, Rule rule, Node node, java.lang.String message, int beginLine, int endLine, java.lang.Object[] args)voidRuleViolationFactory. addViolation(RuleContext ruleContext, Rule rule, Node node, java.lang.String message, java.lang.Object[] args)Adds a violation to the report.protected abstract RuleViolationAbstractRuleViolationFactory. createRuleViolation(Rule rule, RuleContext ruleContext, Node node, java.lang.String message)protected abstract RuleViolationAbstractRuleViolationFactory. createRuleViolation(Rule rule, RuleContext ruleContext, Node node, java.lang.String message, int beginLine, int endLine)voidAbstractDelegateRule. setRule(Rule rule)Deprecated.This will be removed in 7.0.0 I mark it specially deprecated because it's inherited by rule reference, even though a RuleReference has no business setting its rule after constructionprotected abstract voidAbstractRuleChainVisitor. visit(Rule rule, Node node, RuleContext ctx)Visit the given rule to the given node.Constructors in net.sourceforge.pmd.lang.rule with parameters of type Rule Constructor Description ParametricRuleViolation(Rule theRule, RuleContext ctx, T node, java.lang.String message)RuleReference(Rule theRule, RuleSetReference theRuleSetReference)Create a new reference to the given rule. -
Uses of Rule in net.sourceforge.pmd.lang.rule.stat
Subinterfaces of Rule in net.sourceforge.pmd.lang.rule.stat Modifier and Type Interface Description interfaceStatisticalRuleDeprecated.Statistical rules can be implemented much more easily with plain rules, and this framework is confusing and under-documented. -
Uses of Rule in net.sourceforge.pmd.properties
Methods in net.sourceforge.pmd.properties with parameters of type Rule Modifier and Type Method Description java.lang.StringPropertyDescriptor. propertyErrorFor(Rule rule)Deprecated.Used nowhere, and fails if the rule doesn't define the property descriptor A better solution will be added on property source -
Uses of Rule in net.sourceforge.pmd.renderers
Subinterfaces of Rule in net.sourceforge.pmd.renderers Modifier and Type Interface Description interfaceCodeClimateRuleDeprecated. -
Uses of Rule in net.sourceforge.pmd.rules
Methods in net.sourceforge.pmd.rules that return Rule Modifier and Type Method Description RuleRuleBuilder. build()RuleRuleFactory. buildRule(org.w3c.dom.Element ruleElement)Parses a rule element and returns a new rule instance.Methods in net.sourceforge.pmd.rules with parameters of type Rule Modifier and Type Method Description RuleReferenceRuleFactory. decorateRule(Rule referencedRule, RuleSetReference ruleSetReference, org.w3c.dom.Element ruleElement)Decorates a referenced rule with the metadata that are overridden in the given rule element. -
Uses of Rule in net.sourceforge.pmd.util
Methods in net.sourceforge.pmd.util that return Rule Modifier and Type Method Description RuleResourceLoader. loadRuleFromClassPath(java.lang.String clazz)Deprecated.Load the rule from the classloader from resource loader, consistent with the ruleset
-