Package org.gmetrics.metric.coverage
Class Ratio
- java.lang.Object
-
- org.gmetrics.metric.coverage.Ratio
-
- All Implemented Interfaces:
groovy.lang.GroovyObject
public class Ratio extends java.lang.Object implements groovy.lang.GroovyObject
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.ObjectZERO
-
Constructor Summary
Constructors Constructor Description Ratio(int numerator, int denominator)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.ObjectasType(java.lang.Class theClass)intgetDenominator()groovy.lang.MetaClassgetMetaClass()intgetNumerator()java.lang.ObjectgetProperty(java.lang.String property)java.lang.ObjectinvokeMethod(java.lang.String method, java.lang.Object arguments)Ratioplus(Ratio ratio)voidsetMetaClass(groovy.lang.MetaClass mc)voidsetProperty(java.lang.String property, java.lang.Object value)java.math.BigDecimaltoBigDecimal(int scale, int roundingMode)java.lang.StringtoString()
-
-
-
Method Detail
-
getMetaClass
public groovy.lang.MetaClass getMetaClass()
- Specified by:
getMetaClassin interfacegroovy.lang.GroovyObject
-
setMetaClass
public void setMetaClass(groovy.lang.MetaClass mc)
- Specified by:
setMetaClassin interfacegroovy.lang.GroovyObject
-
invokeMethod
public java.lang.Object invokeMethod(java.lang.String method, java.lang.Object arguments)- Specified by:
invokeMethodin interfacegroovy.lang.GroovyObject
-
getProperty
public java.lang.Object getProperty(java.lang.String property)
- Specified by:
getPropertyin interfacegroovy.lang.GroovyObject
-
setProperty
public void setProperty(java.lang.String property, java.lang.Object value)- Specified by:
setPropertyin interfacegroovy.lang.GroovyObject
-
getNumerator
public final int getNumerator()
-
getDenominator
public final int getDenominator()
-
toBigDecimal
public java.math.BigDecimal toBigDecimal(int scale, int roundingMode)
-
asType
public java.lang.Object asType(java.lang.Class theClass)
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-