PropertySource
, Rule
public class MockRule extends AbstractRule
propertyDescriptors, propertyValuesByDescriptor
VIOLATION_SUPPRESS_REGEX_DESCRIPTOR, VIOLATION_SUPPRESS_XPATH_DESCRIPTOR
Constructor | Description |
---|---|
MockRule() |
|
MockRule(java.lang.String name,
java.lang.String description,
java.lang.String message,
java.lang.String ruleSetName) |
|
MockRule(java.lang.String name,
java.lang.String description,
java.lang.String message,
java.lang.String ruleSetName,
RulePriority priority) |
Modifier and Type | Method | Description |
---|---|---|
void |
apply(java.util.List<? extends Node> nodes,
RuleContext ctx) |
Apply this rule to the given collection of nodes, using the given
context.
|
copyPropertyDescriptors, copyPropertyValues, definePropertyDescriptor, dysfunctionReason, getPropertiesByPropertyDescriptor, getProperty, getPropertyDescriptor, getPropertyDescriptors, hasDescriptor, ignoredProperties, setProperty, setProperty, useDefaultValueFor, usesDefaultValues
addExample, addRuleChainVisit, addRuleChainVisit, addViolation, addViolation, addViolation, addViolationWithMessage, addViolationWithMessage, addViolationWithMessage, deepCopy, deepCopyValuesTo, end, equals, getDescription, getExamples, getExternalInfoUrl, getLanguage, getMaximumLanguageVersion, getMessage, getMinimumLanguageVersion, getName, getParserOptions, getPriority, getRuleChainVisits, getRuleClass, getRuleSetName, getSince, hashCode, isDeprecated, isDfa, isMultifile, isRuleChain, isTypeResolution, setDeprecated, setDescription, setDfa, setExternalInfoUrl, setLanguage, setMaximumLanguageVersion, setMessage, setMinimumLanguageVersion, setMultifile, setName, setPriority, setRuleClass, setRuleSetName, setSince, setTypeResolution, setUsesDFA, setUsesMultifile, setUsesTypeResolution, start, usesDFA, usesMultifile, usesRuleChain, usesTypeResolution
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
definePropertyDescriptor, dysfunctionReason, getPropertiesByPropertyDescriptor, getProperty, getPropertyDescriptor, getPropertyDescriptors, hasDescriptor, ignoredProperties, setProperty, setProperty, useDefaultValueFor, usesDefaultValues
public MockRule()
public MockRule(java.lang.String name, java.lang.String description, java.lang.String message, java.lang.String ruleSetName, RulePriority priority)
public MockRule(java.lang.String name, java.lang.String description, java.lang.String message, java.lang.String ruleSetName)
public void apply(java.util.List<? extends Node> nodes, RuleContext ctx)
Rule
nodes
- the nodesctx
- the rule contextCopyright © 2002–2018 PMD. All rights reserved.