net.sourceforge.pmd
Class FooRule
java.lang.Object
net.sourceforge.pmd.AbstractPropertySource
net.sourceforge.pmd.lang.rule.AbstractRule
net.sourceforge.pmd.FooRule
- All Implemented Interfaces:
- PropertySource, Rule
- Direct Known Subclasses:
- MockStatisticalRule
public class FooRule
- extends AbstractRule
Sample rule that detect any node with an image of "Foo". Used for testing.
Methods inherited from class net.sourceforge.pmd.lang.rule.AbstractRule |
addExample, addRuleChainVisit, addRuleChainVisit, addViolation, addViolation, addViolation, addViolationWithMessage, addViolationWithMessage, addViolationWithMessage, deepCopyValuesTo, end, equals, getExamples, getExternalInfoUrl, getLanguage, getMaximumLanguageVersion, getMinimumLanguageVersion, getParserOptions, getPriority, getRuleChainVisits, getRuleClass, getSince, hashCode, isDeprecated, setDeprecated, setDescription, setExternalInfoUrl, setLanguage, setMaximumLanguageVersion, setMessage, setMinimumLanguageVersion, setName, setPriority, setRuleClass, setRuleSetName, setSince, setUsesDFA, setUsesTypeResolution, start, usesDFA, usesRuleChain, usesTypeResolution |
Methods inherited from class net.sourceforge.pmd.AbstractPropertySource |
copyPropertyDescriptors, copyPropertyValues, definePropertyDescriptor, dysfunctionReason, getPropertiesByPropertyDescriptor, getProperty, getPropertyDescriptor, getPropertyDescriptors, hasDescriptor, ignoredProperties, setProperty, useDefaultValueFor, usesDefaultValues |
Methods inherited from interface net.sourceforge.pmd.PropertySource |
definePropertyDescriptor, dysfunctionReason, getPropertiesByPropertyDescriptor, getProperty, getPropertyDescriptor, getPropertyDescriptors, hasDescriptor, ignoredProperties, setProperty, useDefaultValueFor, usesDefaultValues |
FooRule
public FooRule()
getMessage
public String getMessage()
- Specified by:
getMessage
in interface Rule
- Overrides:
getMessage
in class AbstractRule
getName
public String getName()
- Specified by:
getName
in interface Rule
- Overrides:
getName
in class AbstractRule
getRuleSetName
public String getRuleSetName()
- Specified by:
getRuleSetName
in interface Rule
- Overrides:
getRuleSetName
in class AbstractRule
getDescription
public String getDescription()
- Specified by:
getDescription
in interface Rule
- Overrides:
getDescription
in class AbstractRule
apply
public void apply(List<? extends Node> nodes,
RuleContext ctx)
apply
protected void apply(Node node,
RuleContext ctx)
Copyright © 2002–2015 InfoEther. All rights reserved.