| |
|
| java.lang.Object org.hammurapi.InspectorBase org.hammurapi.inspectors.InnerClassNestingRule
InnerClassNestingRule | public class InnerClassNestingRule extends InspectorBase implements Parameterizable(Code) | | ER-094
Avoid more than two levels of nested inner classes
author: Pavel Vlasov version: $Revision: 1.3 $ |
Method Summary | |
public String | getConfigInfo() Gives back the preconfigured values. | public boolean | setParameter(String name, Object parameter) Configures rule. | public void | visit(TypeDefinition element) Reviews the type definition if it is an inner class which nesting
is deaper than the configured value. |
getConfigInfo | public String getConfigInfo()(Code) | | Gives back the preconfigured values.
|
setParameter | public boolean setParameter(String name, Object parameter) throws ConfigurationException(Code) | | Configures rule. Reads in the values of the parameter max-nesting.
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 name, or value. |
visit | public void visit(TypeDefinition element)(Code) | | Reviews the type definition if it is an inner class which nesting
is deaper than the configured value.
Parameters: element - the type definition to be reviewed. |
|
|
|