Class AbstractEcmascriptRule
- java.lang.Object
-
- net.sourceforge.pmd.properties.AbstractPropertySource
-
- net.sourceforge.pmd.lang.rule.AbstractRule
-
- net.sourceforge.pmd.lang.ecmascript.rule.AbstractEcmascriptRule
-
- All Implemented Interfaces:
EcmascriptParserVisitor
,ImmutableLanguage
,PropertySource
,Rule
- Direct Known Subclasses:
ConsistentReturnRule
public abstract class AbstractEcmascriptRule extends AbstractRule implements EcmascriptParserVisitor, 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 AbstractEcmascriptRule()
-
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, 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, setUsesTypeResolution, 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
-
getParserOptions
public ParserOptions getParserOptions()
- Specified by:
getParserOptions
in interfaceRule
- Overrides:
getParserOptions
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(EcmascriptNode<?> node, Object data)
- Specified by:
visit
in interfaceEcmascriptParserVisitor
-
visit
public Object visit(ASTArrayComprehension node, Object data)
- Specified by:
visit
in interfaceEcmascriptParserVisitor
-
visit
public Object visit(ASTArrayComprehensionLoop node, Object data)
- Specified by:
visit
in interfaceEcmascriptParserVisitor
-
visit
public Object visit(ASTArrayLiteral node, Object data)
- Specified by:
visit
in interfaceEcmascriptParserVisitor
-
visit
public Object visit(ASTAssignment node, Object data)
- Specified by:
visit
in interfaceEcmascriptParserVisitor
-
visit
public Object visit(ASTAstRoot node, Object data)
- Specified by:
visit
in interfaceEcmascriptParserVisitor
-
visit
public Object visit(ASTBlock node, Object data)
- Specified by:
visit
in interfaceEcmascriptParserVisitor
-
visit
public Object visit(ASTBreakStatement node, Object data)
- Specified by:
visit
in interfaceEcmascriptParserVisitor
-
visit
public Object visit(ASTCatchClause node, Object data)
- Specified by:
visit
in interfaceEcmascriptParserVisitor
-
visit
public Object visit(ASTComment node, Object data)
- Specified by:
visit
in interfaceEcmascriptParserVisitor
-
visit
public Object visit(ASTConditionalExpression node, Object data)
- Specified by:
visit
in interfaceEcmascriptParserVisitor
-
visit
public Object visit(ASTContinueStatement node, Object data)
- Specified by:
visit
in interfaceEcmascriptParserVisitor
-
visit
public Object visit(ASTDoLoop node, Object data)
- Specified by:
visit
in interfaceEcmascriptParserVisitor
-
visit
public Object visit(ASTElementGet node, Object data)
- Specified by:
visit
in interfaceEcmascriptParserVisitor
-
visit
public Object visit(ASTEmptyExpression node, Object data)
- Specified by:
visit
in interfaceEcmascriptParserVisitor
-
visit
public Object visit(ASTExpressionStatement node, Object data)
- Specified by:
visit
in interfaceEcmascriptParserVisitor
-
visit
public Object visit(ASTForInLoop node, Object data)
- Specified by:
visit
in interfaceEcmascriptParserVisitor
-
visit
public Object visit(ASTForLoop node, Object data)
- Specified by:
visit
in interfaceEcmascriptParserVisitor
-
visit
public Object visit(ASTFunctionCall node, Object data)
- Specified by:
visit
in interfaceEcmascriptParserVisitor
-
visit
public Object visit(ASTFunctionNode node, Object data)
- Specified by:
visit
in interfaceEcmascriptParserVisitor
-
visit
public Object visit(ASTIfStatement node, Object data)
- Specified by:
visit
in interfaceEcmascriptParserVisitor
-
visit
public Object visit(ASTInfixExpression node, Object data)
- Specified by:
visit
in interfaceEcmascriptParserVisitor
-
visit
public Object visit(ASTKeywordLiteral node, Object data)
- Specified by:
visit
in interfaceEcmascriptParserVisitor
-
visit
public Object visit(ASTLabel node, Object data)
- Specified by:
visit
in interfaceEcmascriptParserVisitor
-
visit
public Object visit(ASTLabeledStatement node, Object data)
- Specified by:
visit
in interfaceEcmascriptParserVisitor
-
visit
public Object visit(ASTLetNode node, Object data)
- Specified by:
visit
in interfaceEcmascriptParserVisitor
-
visit
public Object visit(ASTName node, Object data)
- Specified by:
visit
in interfaceEcmascriptParserVisitor
-
visit
public Object visit(ASTNewExpression node, Object data)
- Specified by:
visit
in interfaceEcmascriptParserVisitor
-
visit
public Object visit(ASTNumberLiteral node, Object data)
- Specified by:
visit
in interfaceEcmascriptParserVisitor
-
visit
public Object visit(ASTObjectLiteral node, Object data)
- Specified by:
visit
in interfaceEcmascriptParserVisitor
-
visit
public Object visit(ASTObjectProperty node, Object data)
- Specified by:
visit
in interfaceEcmascriptParserVisitor
-
visit
public Object visit(ASTParenthesizedExpression node, Object data)
- Specified by:
visit
in interfaceEcmascriptParserVisitor
-
visit
public Object visit(ASTPropertyGet node, Object data)
- Specified by:
visit
in interfaceEcmascriptParserVisitor
-
visit
public Object visit(ASTRegExpLiteral node, Object data)
- Specified by:
visit
in interfaceEcmascriptParserVisitor
-
visit
public Object visit(ASTReturnStatement node, Object data)
- Specified by:
visit
in interfaceEcmascriptParserVisitor
-
visit
public Object visit(ASTScope node, Object data)
- Specified by:
visit
in interfaceEcmascriptParserVisitor
-
visit
public Object visit(ASTStringLiteral node, Object data)
- Specified by:
visit
in interfaceEcmascriptParserVisitor
-
visit
public Object visit(ASTSwitchCase node, Object data)
- Specified by:
visit
in interfaceEcmascriptParserVisitor
-
visit
public Object visit(ASTSwitchStatement node, Object data)
- Specified by:
visit
in interfaceEcmascriptParserVisitor
-
visit
public Object visit(ASTThrowStatement node, Object data)
- Specified by:
visit
in interfaceEcmascriptParserVisitor
-
visit
public Object visit(ASTTryStatement node, Object data)
- Specified by:
visit
in interfaceEcmascriptParserVisitor
-
visit
public Object visit(ASTUnaryExpression node, Object data)
- Specified by:
visit
in interfaceEcmascriptParserVisitor
-
visit
public Object visit(ASTVariableDeclaration node, Object data)
- Specified by:
visit
in interfaceEcmascriptParserVisitor
-
visit
public Object visit(ASTVariableInitializer node, Object data)
- Specified by:
visit
in interfaceEcmascriptParserVisitor
-
visit
public Object visit(ASTWhileLoop node, Object data)
- Specified by:
visit
in interfaceEcmascriptParserVisitor
-
visit
public Object visit(ASTWithStatement node, Object data)
- Specified by:
visit
in interfaceEcmascriptParserVisitor
-
visit
public Object visit(ASTXmlDotQuery node, Object data)
- Specified by:
visit
in interfaceEcmascriptParserVisitor
-
visit
public Object visit(ASTXmlExpression node, Object data)
- Specified by:
visit
in interfaceEcmascriptParserVisitor
-
visit
public Object visit(ASTXmlMemberGet node, Object data)
- Specified by:
visit
in interfaceEcmascriptParserVisitor
-
visit
public Object visit(ASTXmlString node, Object data)
- Specified by:
visit
in interfaceEcmascriptParserVisitor
-
-