private static class MethodCountCheck.MethodCounter extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
private java.util.Map<Scope,java.lang.Integer> |
counts
Maintains the counts.
|
private DetailAST |
scopeDefinition
The surrounding scope definition (class, enum, etc.) which the method counts are
connected to.
|
private int |
total
Tracks the total.
|
| Constructor and Description |
|---|
MethodCounter(DetailAST scopeDefinition)
Creates an interface.
|
| Modifier and Type | Method and Description |
|---|---|
private DetailAST |
getScopeDefinition()
Returns the surrounding scope definition (class, enum, etc.) which the method counts
are connected to.
|
private int |
getTotal()
Fetches total number of methods.
|
private void |
increment(Scope scope)
Increments to counter by one for the supplied scope.
|
private int |
value(Scope scope)
Gets the value of a scope counter.
|
private final DetailAST scopeDefinition
private int total
MethodCounter(DetailAST scopeDefinition)
scopeDefinition - The surrounding scope definition (class, enum, etc.) which to count all methods
for.private void increment(Scope scope)
scope - the scope counter to increment.private int value(Scope scope)
scope - the scope counter to get the value ofprivate DetailAST getScopeDefinition()
private int getTotal()
Copyright © 2001-2022. All Rights Reserved.