com.puppycrawl.tools.checkstyle.checks.metrics
public abstract class AbstractClassCouplingCheck extends Check
| Constructor Summary | |
|---|---|
| protected | AbstractClassCouplingCheck(int aDefaultMax)
Creates new instance of the check. |
| Method Summary | |
|---|---|
| void | beginTree(DetailAST aAST) |
| int[] | getDefaultTokens() |
| protected abstract String | getLogMessageId() |
| int | getMax() |
| void | leaveToken(DetailAST aAST) |
| void | setMax(int aMax)
Sets maximul allowed complexity. |
| void | visitToken(DetailAST aAST) |
Parameters: aDefaultMax default value for allowed complexity.
Returns: message key we use for log violations.
Returns: allowed complexity.
Parameters: aMax allowed complexity.