| java.lang.Object org.hammurapi.InspectorBase org.hammurapi.inspectors.MinimalInstanceVariableLengthRule
MinimalInstanceVariableLengthRule | public class MinimalInstanceVariableLengthRule extends InspectorBase implements Parameterizable(Code) | | ER-201
Discourage usage of instance variables like a, j by enforcing minimal variable name length.
author: Janos Czako version: $Revision: 1.4 $ |
Method Summary | |
public String | getConfigInfo() Gives back the preconfigured values. | public boolean | setParameter(String name, Object value) Configures the rule. | public void | visit(TypeDefinition element) Reviews the variable definitions, if they have clashing names
with the class name. |
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 min-length.
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(TypeDefinition element)(Code) | | Reviews the variable definitions, if they have clashing names
with the class name.
Parameters: element - the method definition to be reviewed. |
|
|