Class AvoidDuplicateLiteralsRule
- java.lang.Object
-
- net.sourceforge.pmd.properties.AbstractPropertySource
-
- net.sourceforge.pmd.lang.rule.AbstractRule
-
- net.sourceforge.pmd.lang.java.rule.AbstractJavaRule
-
- net.sourceforge.pmd.lang.java.rule.AbstractJavaRulechainRule
-
- net.sourceforge.pmd.lang.java.rule.errorprone.AvoidDuplicateLiteralsRule
-
- All Implemented Interfaces:
net.sourceforge.pmd.lang.ast.AstVisitor
,JavaVisitor
,net.sourceforge.pmd.lang.rule.Rule
,net.sourceforge.pmd.properties.PropertySource
public class AvoidDuplicateLiteralsRule extends AbstractJavaRulechainRule
-
-
Field Summary
Fields Modifier and Type Field Description static net.sourceforge.pmd.properties.PropertyDescriptor<Integer>
MINIMUM_LENGTH_DESCRIPTOR
static net.sourceforge.pmd.properties.PropertyDescriptor<Boolean>
SKIP_ANNOTATIONS_DESCRIPTOR
static net.sourceforge.pmd.properties.PropertyDescriptor<Integer>
THRESHOLD_DESCRIPTOR
-
Constructor Summary
Constructors Constructor Description AvoidDuplicateLiteralsRule()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
end(net.sourceforge.pmd.reporting.RuleContext ctx)
void
start(net.sourceforge.pmd.reporting.RuleContext ctx)
Object
visit(ASTStringLiteral node, Object data)
-
Methods inherited from class net.sourceforge.pmd.lang.java.rule.AbstractJavaRulechainRule
buildTargetSelector, visitJavaNode
-
Methods inherited from class net.sourceforge.pmd.lang.java.rule.AbstractJavaRule
apply, visitNode
-
Methods inherited from class net.sourceforge.pmd.lang.rule.AbstractRule
addExample, asCtx, deepCopy, equals, getDescription, getExamples, getExternalInfoUrl, getLanguage, getMaximumLanguageVersion, getMessage, getMinimumLanguageVersion, getName, getPriority, getPropertySourceType, getRuleClass, getRuleSetName, getSince, getTargetSelector, hashCode, isDeprecated, setDeprecated, setDescription, setExternalInfoUrl, setLanguage, setMaximumLanguageVersion, setMessage, setMinimumLanguageVersion, setName, setPriority, setRuleClass, setRuleSetName, setSince
-
Methods inherited from class net.sourceforge.pmd.properties.AbstractPropertySource
definePropertyDescriptor, getOverriddenPropertiesByPropertyDescriptor, getOverriddenPropertyDescriptors, getPropertiesByPropertyDescriptor, getProperty, getPropertyDescriptor, getPropertyDescriptors, hasDescriptor, isPropertyOverridden, setProperty
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface net.sourceforge.pmd.lang.java.ast.JavaVisitor
visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit
-
Methods inherited from interface net.sourceforge.pmd.properties.PropertySource
definePropertyDescriptor, dysfunctionReason, getOverriddenPropertiesByPropertyDescriptor, getOverriddenPropertyDescriptors, getPropertiesByPropertyDescriptor, getProperty, getPropertyDescriptor, getPropertyDescriptors, hasDescriptor, isPropertyOverridden, setProperty
-
-
-
-
Field Detail
-
THRESHOLD_DESCRIPTOR
public static final net.sourceforge.pmd.properties.PropertyDescriptor<Integer> THRESHOLD_DESCRIPTOR
-
MINIMUM_LENGTH_DESCRIPTOR
public static final net.sourceforge.pmd.properties.PropertyDescriptor<Integer> MINIMUM_LENGTH_DESCRIPTOR
-
SKIP_ANNOTATIONS_DESCRIPTOR
public static final net.sourceforge.pmd.properties.PropertyDescriptor<Boolean> SKIP_ANNOTATIONS_DESCRIPTOR
-
-
Method Detail
-
start
public void start(net.sourceforge.pmd.reporting.RuleContext ctx)
- Specified by:
start
in interfacenet.sourceforge.pmd.lang.rule.Rule
- Overrides:
start
in classnet.sourceforge.pmd.lang.rule.AbstractRule
-
end
public void end(net.sourceforge.pmd.reporting.RuleContext ctx)
- Specified by:
end
in interfacenet.sourceforge.pmd.lang.rule.Rule
- Overrides:
end
in classnet.sourceforge.pmd.lang.rule.AbstractRule
-
visit
public Object visit(ASTStringLiteral node, Object data)
-
-