Package net.sourceforge.pmd.lang.vm.rule
Class AbstractVmRule
- java.lang.Object
-
- net.sourceforge.pmd.properties.AbstractPropertySource
-
- net.sourceforge.pmd.lang.rule.AbstractRule
-
- net.sourceforge.pmd.lang.vm.rule.AbstractVmRule
-
- All Implemented Interfaces:
ImmutableLanguage
,VmParserVisitor
,PropertySource
,Rule
- Direct Known Subclasses:
AbstractStatisticalVmRule
,AvoidDeeplyNestedIfStmtsRule
,AvoidReassigningParametersRule
,CollapsibleIfStatementsRule
,EmptyForeachStmtRule
,EmptyIfStmtRule
,NoInlineJavaScriptRule
,UnusedMacroParameterRule
public abstract class AbstractVmRule extends AbstractRule implements VmParserVisitor, ImmutableLanguage
-
-
Field Summary
-
Fields inherited from class net.sourceforge.pmd.properties.AbstractPropertySource
propertyDescriptors, propertyValuesByDescriptor
-
Fields inherited from interface net.sourceforge.pmd.Rule
VIOLATION_SUPPRESS_REGEX_DESCRIPTOR, VIOLATION_SUPPRESS_XPATH_DESCRIPTOR
-
-
Constructor Summary
Constructors Constructor Description AbstractVmRule()
-
Method Summary
-
Methods inherited from class net.sourceforge.pmd.lang.rule.AbstractRule
addExample, addRuleChainVisit, addRuleChainVisit, addViolation, addViolation, addViolation, addViolationWithMessage, addViolationWithMessage, addViolationWithMessage, deepCopy, deepCopyValuesTo, end, equals, getDescription, getExamples, getExternalInfoUrl, getLanguage, getMaximumLanguageVersion, getMessage, getMinimumLanguageVersion, getName, getParserOptions, getPriority, getPropertySourceType, 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, start, usesDFA, usesMultifile, usesRuleChain, usesTypeResolution
-
Methods inherited from class net.sourceforge.pmd.properties.AbstractPropertySource
copyPropertyDescriptors, copyPropertyValues, definePropertyDescriptor, dysfunctionReason, getOverriddenPropertiesByPropertyDescriptor, getOverriddenPropertyDescriptors, getPropertiesByPropertyDescriptor, getProperty, getPropertyDescriptor, getPropertyDescriptors, hasDescriptor, ignoredProperties, isPropertyOverridden, setProperty, setProperty, useDefaultValueFor, usesDefaultValues
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface net.sourceforge.pmd.properties.PropertySource
definePropertyDescriptor, dysfunctionReason, getOverriddenPropertiesByPropertyDescriptor, getOverriddenPropertyDescriptors, getPropertiesByPropertyDescriptor, getProperty, getPropertyDescriptor, getPropertyDescriptors, hasDescriptor, ignoredProperties, isPropertyOverridden, setProperty, setProperty, useDefaultValueFor, usesDefaultValues
-
-
-
-
Method Detail
-
setUsesTypeResolution
public void setUsesTypeResolution()
- Specified by:
setUsesTypeResolution
in interfaceRule
- Overrides:
setUsesTypeResolution
in classAbstractRule
-
apply
public void apply(List<? extends Node> nodes, RuleContext ctx)
-
visitAll
protected void visitAll(List<? extends Node> nodes, RuleContext ctx)
-
visit
public Object visit(VmNode node, Object data)
- Specified by:
visit
in interfaceVmParserVisitor
-
visit
public Object visit(ASTprocess node, Object data)
- Specified by:
visit
in interfaceVmParserVisitor
-
visit
public Object visit(ASTEscapedDirective node, Object data)
- Specified by:
visit
in interfaceVmParserVisitor
-
visit
public Object visit(ASTEscape node, Object data)
- Specified by:
visit
in interfaceVmParserVisitor
-
visit
public Object visit(ASTComment node, Object data)
- Specified by:
visit
in interfaceVmParserVisitor
-
visit
public Object visit(ASTTextblock node, Object data)
- Specified by:
visit
in interfaceVmParserVisitor
-
visit
public Object visit(ASTFloatingPointLiteral node, Object data)
- Specified by:
visit
in interfaceVmParserVisitor
-
visit
public Object visit(ASTIntegerLiteral node, Object data)
- Specified by:
visit
in interfaceVmParserVisitor
-
visit
public Object visit(ASTStringLiteral node, Object data)
- Specified by:
visit
in interfaceVmParserVisitor
-
visit
public Object visit(ASTIdentifier node, Object data)
- Specified by:
visit
in interfaceVmParserVisitor
-
visit
public Object visit(ASTWord node, Object data)
- Specified by:
visit
in interfaceVmParserVisitor
-
visit
public Object visit(ASTDirective node, Object data)
- Specified by:
visit
in interfaceVmParserVisitor
-
visit
public Object visit(ASTBlock node, Object data)
- Specified by:
visit
in interfaceVmParserVisitor
-
visit
public Object visit(ASTMap node, Object data)
- Specified by:
visit
in interfaceVmParserVisitor
-
visit
public Object visit(ASTObjectArray node, Object data)
- Specified by:
visit
in interfaceVmParserVisitor
-
visit
public Object visit(ASTIntegerRange node, Object data)
- Specified by:
visit
in interfaceVmParserVisitor
-
visit
public Object visit(ASTMethod node, Object data)
- Specified by:
visit
in interfaceVmParserVisitor
-
visit
public Object visit(ASTIndex node, Object data)
- Specified by:
visit
in interfaceVmParserVisitor
-
visit
public Object visit(ASTReference node, Object data)
- Specified by:
visit
in interfaceVmParserVisitor
-
visit
public Object visit(ASTTrue node, Object data)
- Specified by:
visit
in interfaceVmParserVisitor
-
visit
public Object visit(ASTFalse node, Object data)
- Specified by:
visit
in interfaceVmParserVisitor
-
visit
public Object visit(ASTText node, Object data)
- Specified by:
visit
in interfaceVmParserVisitor
-
visit
public Object visit(ASTForeachStatement node, Object data)
- Specified by:
visit
in interfaceVmParserVisitor
-
visit
public Object visit(ASTIfStatement node, Object data)
- Specified by:
visit
in interfaceVmParserVisitor
-
visit
public Object visit(ASTElseStatement node, Object data)
- Specified by:
visit
in interfaceVmParserVisitor
-
visit
public Object visit(ASTElseIfStatement node, Object data)
- Specified by:
visit
in interfaceVmParserVisitor
-
visit
public Object visit(ASTSetDirective node, Object data)
- Specified by:
visit
in interfaceVmParserVisitor
-
visit
public Object visit(ASTExpression node, Object data)
- Specified by:
visit
in interfaceVmParserVisitor
-
visit
public Object visit(ASTAssignment node, Object data)
- Specified by:
visit
in interfaceVmParserVisitor
-
visit
public Object visit(ASTOrNode node, Object data)
- Specified by:
visit
in interfaceVmParserVisitor
-
visit
public Object visit(ASTAndNode node, Object data)
- Specified by:
visit
in interfaceVmParserVisitor
-
visit
public Object visit(ASTEQNode node, Object data)
- Specified by:
visit
in interfaceVmParserVisitor
-
visit
public Object visit(ASTNENode node, Object data)
- Specified by:
visit
in interfaceVmParserVisitor
-
visit
public Object visit(ASTLTNode node, Object data)
- Specified by:
visit
in interfaceVmParserVisitor
-
visit
public Object visit(ASTGTNode node, Object data)
- Specified by:
visit
in interfaceVmParserVisitor
-
visit
public Object visit(ASTLENode node, Object data)
- Specified by:
visit
in interfaceVmParserVisitor
-
visit
public Object visit(ASTGENode node, Object data)
- Specified by:
visit
in interfaceVmParserVisitor
-
visit
public Object visit(ASTAddNode node, Object data)
- Specified by:
visit
in interfaceVmParserVisitor
-
visit
public Object visit(ASTSubtractNode node, Object data)
- Specified by:
visit
in interfaceVmParserVisitor
-
visit
public Object visit(ASTMulNode node, Object data)
- Specified by:
visit
in interfaceVmParserVisitor
-
visit
public Object visit(ASTDivNode node, Object data)
- Specified by:
visit
in interfaceVmParserVisitor
-
visit
public Object visit(ASTModNode node, Object data)
- Specified by:
visit
in interfaceVmParserVisitor
-
visit
public Object visit(ASTNotNode node, Object data)
- Specified by:
visit
in interfaceVmParserVisitor
-
-