| java.lang.Object org.hammurapi.InspectorBase org.hammurapi.inspectors.TooManyThrowsRule
TooManyThrowsRule | public class TooManyThrowsRule extends InspectorBase implements Parameterizable(Code) | | ER-112
Too many exceptions listed in throws clause
author: Pavel Vlasov version: $Revision: 1.4 $ |
Method Summary | |
public String | getConfigInfo() Gives back the preconfigured values. | public boolean | setParameter(String name, Object parameter) Configures the rule. | public void | visit(Operation element) Reviews the operations, if they have in their throws clause more
item than the preconfigured allowed maximum. |
getConfigInfo | public String getConfigInfo()(Code) | | Gives back the preconfigured values.
|
setParameter | public boolean setParameter(String name, Object parameter) throws ConfigurationException(Code) | | Configures the rule. Reads in the values of the parameters max-parameters and
class-max-complexity.
Parameters: name - the name of the parameter being loaded from Hammurapi configuration Parameters: parameter - the value of the parameter being loaded from Hammurapi configuration exception: ConfigurationException - in case of a not supported parameter |
visit | public void visit(Operation element)(Code) | | Reviews the operations, if they have in their throws clause more
item than the preconfigured allowed maximum.
Parameters: element - the operation to be reviewed. |
|
|