MethodMetric, Metricpublic class MethodLineCountMetric extends AbstractMethodMetric
| Constructor | Description |
|---|---|
MethodLineCountMetric() |
| Modifier and Type | Method | Description |
|---|---|---|
MetricResult |
calculate(org.codehaus.groovy.ast.expr.ClosureExpression closureExpression,
SourceCode sourceCode) |
|
MetricResult |
calculate(org.codehaus.groovy.ast.MethodNode methodNode,
SourceCode sourceCode) |
|
groovy.lang.MetaClass |
getMetaClass() |
|
String |
getName() |
|
Object |
getProperty(String property) |
|
Object |
invokeMethod(String method,
Object arguments) |
|
void |
setMetaClass(groovy.lang.MetaClass mc) |
|
void |
setProperty(String property,
Object value) |
applyToClosure, applyToMethod, calculateForClass, getBaseLevel, getIncludeClosureFields, isIncludeClosureFields, lineNumberForMethod, setIncludeClosureFieldsapplyToClass, applyToPackage, calculateForPackage, createAggregateMetricResult, createAggregateMetricResult, getEnabled, getFunctions, isEnabled, isNotAnInterface, setEnabled, setFunctionsapplyToClass, applyToPackage, getFunctions, isEnabledpublic groovy.lang.MetaClass getMetaClass()
getMetaClass in class AbstractMethodMetricpublic void setMetaClass(groovy.lang.MetaClass mc)
setMetaClass in class AbstractMethodMetricpublic Object invokeMethod(String method, Object arguments)
invokeMethod in class AbstractMethodMetricpublic Object getProperty(String property)
getProperty in class AbstractMethodMetricpublic void setProperty(String property, Object value)
setProperty in class AbstractMethodMetricpublic final String getName()
public MetricResult calculate(org.codehaus.groovy.ast.MethodNode methodNode, SourceCode sourceCode)
calculate in class AbstractMethodMetricpublic MetricResult calculate(org.codehaus.groovy.ast.expr.ClosureExpression closureExpression, SourceCode sourceCode)
calculate in class AbstractMethodMetricCopyright © 2019. All rights reserved.