Abstract superclass for AstVisitor classes that use method-level GMetrics Metrics. Subclasses must:
createMetric()
methodgetMetricShortDescription()
methodgetMaxMethodMetricValue()
methodgetMaxClassAverageMethodMetricValue()
methodignoreMethodNames
propertyModifiers | Name | Description |
---|---|---|
protected org.gmetrics.metric.Metric |
metric |
Type Params | Return Type | Name and description |
---|---|---|
|
protected void |
addViolation(org.gmetrics.result.MetricResult classResults, java.lang.String message) |
|
protected org.gmetrics.metric.Metric |
createMetric() |
|
protected java.lang.String |
extractMethodName(java.lang.Object method) |
|
protected java.lang.Integer |
getLineNumber(org.gmetrics.result.MetricResult methodResults) |
|
protected java.lang.Object |
getMaxClassAverageMethodMetricValue() |
|
protected java.lang.Object |
getMaxClassMetricValue() |
|
protected java.lang.Object |
getMaxMethodMetricValue() |
|
protected java.lang.String |
getMetricShortDescription() |
|
protected java.lang.String |
getSourceLine(java.lang.Integer lineNumber) |
|
protected boolean |
isIgnoredMethodName(java.lang.String methodName) |
|
void |
visitClassEx(org.codehaus.groovy.ast.ClassNode classNode) |
Methods inherited from class | Name |
---|---|
class AbstractAstVisitor |
addViolation, addViolation, getCurrentClassName, getCurrentClassNode, getRule, getSourceCode, getSourceUnit, getViolations, getVisited, isFirstVisit, lastSourceLine, lastSourceLineTrimmed, setRule, setSourceCode, setVisited, shouldVisitMethod, sourceLine, sourceLineTrimmed, visitClass, visitClassComplete, visitClassEx, visitMethod, visitMethodComplete, visitMethodEx |