MethodMetric, MetricAbcMetric, CrapMetric, CyclomaticComplexityMetric, MethodLineCountMetricpublic abstract class AbstractMethodMetric extends AbstractMetric implements MethodMetric
| Constructor | Description |
|---|---|
AbstractMethodMetric() |
| Modifier and Type | Method | Description |
|---|---|---|
MetricResult |
applyToClosure(org.codehaus.groovy.ast.expr.ClosureExpression closureExpression,
SourceCode sourceCode) |
|
MetricResult |
applyToMethod(org.codehaus.groovy.ast.MethodNode methodNode,
SourceCode sourceCode) |
|
abstract MetricResult |
calculate(org.codehaus.groovy.ast.expr.ClosureExpression closureExpression,
SourceCode sourceCode) |
|
abstract MetricResult |
calculate(org.codehaus.groovy.ast.MethodNode methodNode,
SourceCode sourceCode) |
|
protected ClassMetricResult |
calculateForClass(org.codehaus.groovy.ast.ClassNode classNode,
SourceCode sourceCode) |
|
MetricLevel |
getBaseLevel() |
|
boolean |
getIncludeClosureFields() |
|
groovy.lang.MetaClass |
getMetaClass() |
|
Object |
getProperty(String property) |
|
Object |
invokeMethod(String method,
Object arguments) |
|
boolean |
isIncludeClosureFields() |
|
protected int |
lineNumberForMethod(org.codehaus.groovy.ast.MethodNode methodNode) |
|
void |
setIncludeClosureFields(boolean value) |
|
void |
setMetaClass(groovy.lang.MetaClass mc) |
|
void |
setProperty(String property,
Object value) |
applyToClass, applyToPackage, calculateForPackage, createAggregateMetricResult, createAggregateMetricResult, getEnabled, getFunctions, isEnabled, isNotAnInterface, setEnabled, setFunctionsapplyToClass, applyToPackage, getFunctions, getName, isEnabledpublic groovy.lang.MetaClass getMetaClass()
getMetaClass in class AbstractMetricpublic void setMetaClass(groovy.lang.MetaClass mc)
setMetaClass in class AbstractMetricpublic Object invokeMethod(String method, Object arguments)
invokeMethod in class AbstractMetricpublic Object getProperty(String property)
getProperty in class AbstractMetricpublic void setProperty(String property, Object value)
setProperty in class AbstractMetricpublic final MetricLevel getBaseLevel()
getBaseLevel in interface Metricpublic boolean getIncludeClosureFields()
public boolean isIncludeClosureFields()
public void setIncludeClosureFields(boolean value)
public abstract MetricResult calculate(org.codehaus.groovy.ast.MethodNode methodNode, SourceCode sourceCode)
public abstract MetricResult calculate(org.codehaus.groovy.ast.expr.ClosureExpression closureExpression, SourceCode sourceCode)
public MetricResult applyToMethod(org.codehaus.groovy.ast.MethodNode methodNode, SourceCode sourceCode)
applyToMethod in interface MethodMetricpublic MetricResult applyToClosure(org.codehaus.groovy.ast.expr.ClosureExpression closureExpression, SourceCode sourceCode)
applyToClosure in interface MethodMetricprotected ClassMetricResult calculateForClass(org.codehaus.groovy.ast.ClassNode classNode, SourceCode sourceCode)
calculateForClass in class AbstractMetricprotected int lineNumberForMethod(org.codehaus.groovy.ast.MethodNode methodNode)
Copyright © 2019. All rights reserved.