Package org.gmetrics.metric.coverage
Class CoberturaBranchCoverageMetric
java.lang.Object
org.gmetrics.metric.AbstractMetric
org.gmetrics.metric.coverage.AbstractCoberturaCoverageMetric
org.gmetrics.metric.coverage.CoberturaBranchCoverageMetric
- All Implemented Interfaces:
groovy.lang.GroovyObject
,MethodMetric
,Metric
-
Field Summary
Fields inherited from class org.gmetrics.metric.coverage.AbstractCoberturaCoverageMetric
LOG, ROUNDING_MODE, SCALE
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal String
protected Ratio
getCoverageRatioForSingleClass
(Object matchingClassElement) groovy.lang.MetaClass
final String
getName()
getProperty
(String property) invokeMethod
(String method, Object arguments) void
setMetaClass
(groovy.lang.MetaClass mc) void
setProperty
(String property, Object value) Methods inherited from class org.gmetrics.metric.coverage.AbstractCoberturaCoverageMetric
applyToClosure, applyToMethod, calculate, calculateForClass, calculateForPackage, calculateMethodResult, findMethodElement, getBaseLevel, getCoberturaFile, getCoverageRatioForClass, setCoberturaFile
Methods inherited from class org.gmetrics.metric.AbstractMetric
applyToClass, applyToPackage, createAggregateMetricResult, createAggregateMetricResult, getEnabled, getFunctions, isEnabled, isNotAnInterface, setEnabled, setFunctions
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.gmetrics.metric.Metric
applyToClass, applyToPackage, getFunctions, isEnabled
-
Constructor Details
-
CoberturaBranchCoverageMetric
public CoberturaBranchCoverageMetric()
-
-
Method Details
-
getMetaClass
public groovy.lang.MetaClass getMetaClass()- Specified by:
getMetaClass
in interfacegroovy.lang.GroovyObject
- Overrides:
getMetaClass
in classAbstractCoberturaCoverageMetric
-
setMetaClass
public void setMetaClass(groovy.lang.MetaClass mc) - Specified by:
setMetaClass
in interfacegroovy.lang.GroovyObject
- Overrides:
setMetaClass
in classAbstractCoberturaCoverageMetric
-
invokeMethod
- Specified by:
invokeMethod
in interfacegroovy.lang.GroovyObject
- Overrides:
invokeMethod
in classAbstractCoberturaCoverageMetric
-
getProperty
- Specified by:
getProperty
in interfacegroovy.lang.GroovyObject
- Overrides:
getProperty
in classAbstractCoberturaCoverageMetric
-
setProperty
- Specified by:
setProperty
in interfacegroovy.lang.GroovyObject
- Overrides:
setProperty
in classAbstractCoberturaCoverageMetric
-
getName
-
getAttributeName
- Specified by:
getAttributeName
in classAbstractCoberturaCoverageMetric
-
getCoverageRatioForSingleClass
- Specified by:
getCoverageRatioForSingleClass
in classAbstractCoberturaCoverageMetric
-