Class CyclomaticComplexityRule
- java.lang.Object
-
- net.sourceforge.pmd.properties.AbstractPropertySource
-
- net.sourceforge.pmd.lang.rule.AbstractRule
-
- net.sourceforge.pmd.lang.plsql.rule.AbstractPLSQLRule
-
- net.sourceforge.pmd.lang.plsql.rule.design.CyclomaticComplexityRule
-
- All Implemented Interfaces:
PLSQLParserVisitor
,ImmutableLanguage
,PropertySource
,Rule
public class CyclomaticComplexityRule extends AbstractPLSQLRule
- Since:
- January 14, 2003
- Version:
- $Revision: 5956 $, $Date: 2008-04-04 04:59:25 -0500 (Fri, 04 Apr 2008) $
- Author:
- Donald A. Leckie,
-
-
Field Summary
Fields Modifier and Type Field Description static PropertyDescriptor<Integer>
REPORT_LEVEL_DESCRIPTOR
static BooleanProperty
SHOW_CLASSES_COMPLEXITY_DESCRIPTOR
static BooleanProperty
SHOW_METHODS_COMPLEXITY_DESCRIPTOR
-
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 CyclomaticComplexityRule()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Object
visit(ASTCaseStatement node, Object data)
Object
visit(ASTCaseWhenClause node, Object data)
Object
visit(ASTConditionalOrExpression node, Object data)
Object
visit(ASTElsifClause node, Object data)
Object
visit(ASTExceptionHandler node, Object data)
Object
visit(ASTForStatement node, Object data)
Object
visit(ASTIfStatement node, Object data)
Object
visit(ASTInput node, Object data)
Object
visit(ASTLoopStatement node, Object data)
Object
visit(ASTPackageBody node, Object data)
Object
visit(ASTPackageSpecification node, Object data)
Object
visit(ASTProgramUnit node, Object data)
Object
visit(ASTTriggerTimingPointSection node, Object data)
Object
visit(ASTTriggerUnit node, Object data)
Object
visit(ASTTypeMethod node, Object data)
Object
visit(ASTTypeSpecification node, Object data)
Object
visit(ASTWhileStatement node, Object data)
-
Methods inherited from class net.sourceforge.pmd.lang.plsql.rule.AbstractPLSQLRule
apply, getDeclaringType, importsPackage, isQualifiedName, 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, 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, visitAll
-
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, 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
-
-
-
-
Field Detail
-
REPORT_LEVEL_DESCRIPTOR
public static final PropertyDescriptor<Integer> REPORT_LEVEL_DESCRIPTOR
-
SHOW_CLASSES_COMPLEXITY_DESCRIPTOR
public static final BooleanProperty SHOW_CLASSES_COMPLEXITY_DESCRIPTOR
-
SHOW_METHODS_COMPLEXITY_DESCRIPTOR
public static final BooleanProperty SHOW_METHODS_COMPLEXITY_DESCRIPTOR
-
-
Method Detail
-
visit
public Object visit(ASTInput node, Object data)
- Specified by:
visit
in interfacePLSQLParserVisitor
- Overrides:
visit
in classAbstractPLSQLRule
-
visit
public Object visit(ASTElsifClause node, Object data)
- Specified by:
visit
in interfacePLSQLParserVisitor
- Overrides:
visit
in classAbstractPLSQLRule
-
visit
public Object visit(ASTIfStatement node, Object data)
- Specified by:
visit
in interfacePLSQLParserVisitor
- Overrides:
visit
in classAbstractPLSQLRule
-
visit
public Object visit(ASTExceptionHandler node, Object data)
- Specified by:
visit
in interfacePLSQLParserVisitor
- Overrides:
visit
in classAbstractPLSQLRule
-
visit
public Object visit(ASTForStatement node, Object data)
- Specified by:
visit
in interfacePLSQLParserVisitor
- Overrides:
visit
in classAbstractPLSQLRule
-
visit
public Object visit(ASTLoopStatement node, Object data)
- Specified by:
visit
in interfacePLSQLParserVisitor
- Overrides:
visit
in classAbstractPLSQLRule
-
visit
public Object visit(ASTCaseStatement node, Object data)
- Specified by:
visit
in interfacePLSQLParserVisitor
- Overrides:
visit
in classAbstractPLSQLRule
-
visit
public Object visit(ASTCaseWhenClause node, Object data)
- Specified by:
visit
in interfacePLSQLParserVisitor
- Overrides:
visit
in classAbstractPLSQLRule
-
visit
public Object visit(ASTWhileStatement node, Object data)
- Specified by:
visit
in interfacePLSQLParserVisitor
- Overrides:
visit
in classAbstractPLSQLRule
-
visit
public Object visit(ASTConditionalOrExpression node, Object data)
- Specified by:
visit
in interfacePLSQLParserVisitor
- Overrides:
visit
in classAbstractPLSQLRule
-
visit
public Object visit(ASTPackageSpecification node, Object data)
- Specified by:
visit
in interfacePLSQLParserVisitor
- Overrides:
visit
in classAbstractPLSQLRule
-
visit
public Object visit(ASTTypeSpecification node, Object data)
- Specified by:
visit
in interfacePLSQLParserVisitor
- Overrides:
visit
in classAbstractPLSQLRule
-
visit
public Object visit(ASTPackageBody node, Object data)
- Specified by:
visit
in interfacePLSQLParserVisitor
- Overrides:
visit
in classAbstractPLSQLRule
-
visit
public Object visit(ASTTriggerUnit node, Object data)
- Specified by:
visit
in interfacePLSQLParserVisitor
- Overrides:
visit
in classAbstractPLSQLRule
-
visit
public Object visit(ASTProgramUnit node, Object data)
- Specified by:
visit
in interfacePLSQLParserVisitor
- Overrides:
visit
in classAbstractPLSQLRule
-
visit
public Object visit(ASTTypeMethod node, Object data)
- Specified by:
visit
in interfacePLSQLParserVisitor
- Overrides:
visit
in classAbstractPLSQLRule
-
visit
public Object visit(ASTTriggerTimingPointSection node, Object data)
- Specified by:
visit
in interfacePLSQLParserVisitor
- Overrides:
visit
in classAbstractPLSQLRule
-
-