Package org.gmetrics.metric.coverage
Class CoberturaLineCoverageMetric
- java.lang.Object
-
- org.gmetrics.metric.AbstractMetric
-
- org.gmetrics.metric.coverage.AbstractCoberturaCoverageMetric
-
- org.gmetrics.metric.coverage.CoberturaLineCoverageMetric
-
- All Implemented Interfaces:
groovy.lang.GroovyObject,MethodMetric,Metric
public class CoberturaLineCoverageMetric extends AbstractCoberturaCoverageMetric
-
-
Field Summary
-
Fields inherited from class org.gmetrics.metric.coverage.AbstractCoberturaCoverageMetric
LOG, ROUNDING_MODE, SCALE
-
-
Constructor Summary
Constructors Constructor Description CoberturaLineCoverageMetric()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetAttributeName()protected RatiogetCoverageRatioForSingleClass(Object matchingClassElement)groovy.lang.MetaClassgetMetaClass()StringgetName()ObjectgetProperty(String property)ObjectinvokeMethod(String method, Object arguments)voidsetMetaClass(groovy.lang.MetaClass mc)voidsetProperty(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
-
-
-
-
Method Detail
-
getMetaClass
public groovy.lang.MetaClass getMetaClass()
- Specified by:
getMetaClassin interfacegroovy.lang.GroovyObject- Overrides:
getMetaClassin classAbstractCoberturaCoverageMetric
-
setMetaClass
public void setMetaClass(groovy.lang.MetaClass mc)
- Specified by:
setMetaClassin interfacegroovy.lang.GroovyObject- Overrides:
setMetaClassin classAbstractCoberturaCoverageMetric
-
invokeMethod
public Object invokeMethod(String method, Object arguments)
- Specified by:
invokeMethodin interfacegroovy.lang.GroovyObject- Overrides:
invokeMethodin classAbstractCoberturaCoverageMetric
-
getProperty
public Object getProperty(String property)
- Specified by:
getPropertyin interfacegroovy.lang.GroovyObject- Overrides:
getPropertyin classAbstractCoberturaCoverageMetric
-
setProperty
public void setProperty(String property, Object value)
- Specified by:
setPropertyin interfacegroovy.lang.GroovyObject- Overrides:
setPropertyin classAbstractCoberturaCoverageMetric
-
getName
public final String getName()
-
getAttributeName
public final String getAttributeName()
- Specified by:
getAttributeNamein classAbstractCoberturaCoverageMetric
-
getCoverageRatioForSingleClass
protected Ratio getCoverageRatioForSingleClass(Object matchingClassElement)
- Specified by:
getCoverageRatioForSingleClassin classAbstractCoberturaCoverageMetric
-
-