public abstract class AbstractMethodMetric extends AbstractMetric implements MethodMetric, groovy.lang.GroovyObject
| Constructor and Description |
|---|
AbstractMethodMetric() |
| Modifier and Type | Method and 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() |
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, setFunctionsclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitapplyToClass, applyToPackage, getFunctions, getName, isEnabledpublic groovy.lang.MetaClass getMetaClass()
getMetaClass in interface groovy.lang.GroovyObjectgetMetaClass in class AbstractMetricpublic void setMetaClass(groovy.lang.MetaClass mc)
setMetaClass in interface groovy.lang.GroovyObjectsetMetaClass in class AbstractMetricpublic Object invokeMethod(String method, Object arguments)
invokeMethod in interface groovy.lang.GroovyObjectinvokeMethod in class AbstractMetricpublic Object getProperty(String property)
getProperty in interface groovy.lang.GroovyObjectgetProperty in class AbstractMetricpublic void setProperty(String property, Object value)
setProperty in interface groovy.lang.GroovyObjectsetProperty in class AbstractMetricpublic 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 AbstractMetricCopyright © 2015. All rights reserved.