|
Groovy Documentation | |||||||
FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.codenarc.rule.AbstractAstVisitor
groovy.org.codenarc.rule.size.AbstractMethodMetricAstVisitor
@SuppressWarnings('DuplicateLiteral') abstract class AbstractMethodMetricAstVisitor extends AbstractAstVisitor
Abstract superclass for AstVisitor classes that use method-level GMetrics Metrics. Subclasses must:
createMetric()
methodgetMetricShortDescription()
methodgetMaxMethodMetricValue()
methodgetMaxClassMetricValue()
methodignoreMethodNames
propertyField Summary | |
---|---|
protected org.gmetrics.metric.Metric |
metric
|
Method Summary | |
---|---|
protected def
|
createMetric()
|
protected String
|
extractMethodName(def method)
|
protected def
|
getLineNumber(def methodResults)
|
protected Object
|
getMaxClassMetricValue()
|
protected Object
|
getMaxMethodMetricValue()
|
protected def
|
getMethodNode(org.codehaus.groovy.ast.ClassNode classNode, String methodName, def results)
|
protected String
|
getMetricShortDescription()
|
protected String
|
getSourceLine(def lineNumber)
|
protected boolean
|
isIgnoredMethodName(String methodName)
|
void
|
visitClassEx(org.codehaus.groovy.ast.ClassNode classNode)
|
Field Detail |
---|
protected org.gmetrics.metric.Metric metric
Method Detail |
---|
protected def createMetric()
protected String extractMethodName(def method)
protected def getLineNumber(def methodResults)
protected Object getMaxClassMetricValue()
protected Object getMaxMethodMetricValue()
protected def getMethodNode(org.codehaus.groovy.ast.ClassNode classNode, String methodName, def results)
protected String getMetricShortDescription()
protected String getSourceLine(def lineNumber)
protected boolean isIgnoredMethodName(String methodName)
void visitClassEx(org.codehaus.groovy.ast.ClassNode classNode)
Groovy Documentation