| |
|
| java.lang.Object org.hammurapi.InspectorBase org.hammurapi.inspectors.CyclomaticComplexityRule
CyclomaticComplexityRule | public class CyclomaticComplexityRule extends InspectorBase implements Parameterizable(Code) | | Cyclomatic complexity exceeds specified maximum.
author: Pavel Vlasov version: $Revision: 1.5 $ |
Method Summary | |
public String | getConfigInfo() Gives back the preconfigured values. | public boolean | setParameter(String name, Object value) Configures the rule. | public void | visit(Operation operation) Reviews the methods and calculates their complexity. | public void | visit(com.pavelvlasov.jsel.Class clazz) Reviews the class definition and calculates its complexity. |
getConfigInfo | public String getConfigInfo()(Code) | | Gives back the preconfigured values.
|
setParameter | public boolean setParameter(String name, Object value) throws ConfigurationException(Code) | | Configures the rule. Reads in the values of the parameters operation-max-complexity and
class-max-complexity.
Parameters: name - the name of the parameter being loaded from Hammurapi configuration Parameters: value - the value of the parameter being loaded from Hammurapi configuration exception: ConfigurationException - in case of a not supported parameter |
visit | public void visit(Operation operation)(Code) | | Reviews the methods and calculates their complexity.
Parameters: operation - the method to be reviewed. |
visit | public void visit(com.pavelvlasov.jsel.Class clazz)(Code) | | Reviews the class definition and calculates its complexity.
Parameters: clazz - the class definition to be reviewed. |
|
|
|