| java.lang.Object org.hammurapi.InspectorBase org.hammurapi.inspectors.MaxLinesInFileRule
MaxLinesInFileRule | public class MaxLinesInFileRule extends InspectorBase implements Parameterizable(Code) | | ER-019
Source file is too long
author: Janos Czako version: $Revision: 1.8 $ |
Method Summary | |
public String | getConfigInfo() Gives back the preconfigured values. | public boolean | setParameter(String name, Object parameter) Configures the rule. | public void | visit(CompilationUnit element) Reviews the compilation unit, if it has more lines than the
configured maximum value. |
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 parameter maximum-line.
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(CompilationUnit element)(Code) | | Reviews the compilation unit, if it has more lines than the
configured maximum value.
Parameters: element - the unit to be reviewed. |
|
|