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 java.lang.StringgetAttributeName()protected RatiogetCoverageRatioForSingleClass(java.lang.Object matchingClassElement)groovy.lang.MetaClassgetMetaClass()java.lang.StringgetName()java.lang.ObjectgetProperty(java.lang.String property)java.lang.ObjectinvokeMethod(java.lang.String method, java.lang.Object arguments)voidsetMetaClass(groovy.lang.MetaClass mc)voidsetProperty(java.lang.String property, java.lang.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 java.lang.Object invokeMethod(java.lang.String method, java.lang.Object arguments)- Specified by:
invokeMethodin interfacegroovy.lang.GroovyObject- Overrides:
invokeMethodin classAbstractCoberturaCoverageMetric
-
getProperty
public java.lang.Object getProperty(java.lang.String property)
- Specified by:
getPropertyin interfacegroovy.lang.GroovyObject- Overrides:
getPropertyin classAbstractCoberturaCoverageMetric
-
setProperty
public void setProperty(java.lang.String property, java.lang.Object value)- Specified by:
setPropertyin interfacegroovy.lang.GroovyObject- Overrides:
setPropertyin classAbstractCoberturaCoverageMetric
-
getName
public final java.lang.String getName()
-
getAttributeName
public final java.lang.String getAttributeName()
- Specified by:
getAttributeNamein classAbstractCoberturaCoverageMetric
-
getCoverageRatioForSingleClass
protected Ratio getCoverageRatioForSingleClass(java.lang.Object matchingClassElement)
- Specified by:
getCoverageRatioForSingleClassin classAbstractCoberturaCoverageMetric
-
-