Class NumberNumberDiv
java.lang.Object
org.codehaus.groovy.reflection.ParameterTypes
groovy.lang.MetaMethod
org.codehaus.groovy.runtime.callsite.CallSiteAwareMetaMethod
org.codehaus.groovy.runtime.dgmimpl.NumberNumberMetaMethod
org.codehaus.groovy.runtime.dgmimpl.NumberNumberDiv
- All Implemented Interfaces:
java.lang.Cloneable
public final class NumberNumberDiv extends NumberNumberMetaMethod
-
Nested Class Summary
Nested classes/interfaces inherited from class org.codehaus.groovy.runtime.dgmimpl.NumberNumberMetaMethod
NumberNumberMetaMethod.NumberNumberCallSite -
Field Summary
Fields inherited from class groovy.lang.MetaMethod
EMPTY_ARRAYFields inherited from class org.codehaus.groovy.reflection.ParameterTypes
isVargsMethod, nativeParamTypes, parameterTypes -
Constructor Summary
Constructors Constructor Description NumberNumberDiv() -
Method Summary
Modifier and Type Method Description CallSitecreateDoubleDouble(CallSite site, MetaClassImpl metaClass, MetaMethod metaMethod, java.lang.Class[] params, java.lang.Object receiver, java.lang.Object[] args)CallSitecreateDoubleFloat(CallSite site, MetaClassImpl metaClass, MetaMethod metaMethod, java.lang.Class[] params, java.lang.Object receiver, java.lang.Object[] args)CallSitecreateDoubleInteger(CallSite site, MetaClassImpl metaClass, MetaMethod metaMethod, java.lang.Class[] params, java.lang.Object receiver, java.lang.Object[] args)CallSitecreateDoubleLong(CallSite site, MetaClassImpl metaClass, MetaMethod metaMethod, java.lang.Class[] params, java.lang.Object receiver, java.lang.Object[] args)CallSitecreateFloatDouble(CallSite site, MetaClassImpl metaClass, MetaMethod metaMethod, java.lang.Class[] params, java.lang.Object receiver, java.lang.Object[] args)CallSitecreateFloatFloat(CallSite site, MetaClassImpl metaClass, MetaMethod metaMethod, java.lang.Class[] params, java.lang.Object receiver, java.lang.Object[] args)CallSitecreateFloatInteger(CallSite site, MetaClassImpl metaClass, MetaMethod metaMethod, java.lang.Class[] params, java.lang.Object receiver, java.lang.Object[] args)CallSitecreateFloatLong(CallSite site, MetaClassImpl metaClass, MetaMethod metaMethod, java.lang.Class[] params, java.lang.Object receiver, java.lang.Object[] args)CallSitecreateIntegerDouble(CallSite site, MetaClassImpl metaClass, MetaMethod metaMethod, java.lang.Class[] params, java.lang.Object receiver, java.lang.Object[] args)CallSitecreateIntegerFloat(CallSite site, MetaClassImpl metaClass, MetaMethod metaMethod, java.lang.Class[] params, java.lang.Object receiver, java.lang.Object[] args)CallSitecreateIntegerInteger(CallSite site, MetaClassImpl metaClass, MetaMethod metaMethod, java.lang.Class[] params, java.lang.Object receiver, java.lang.Object[] args)CallSitecreateIntegerLong(CallSite site, MetaClassImpl metaClass, MetaMethod metaMethod, java.lang.Class[] params, java.lang.Object receiver, java.lang.Object[] args)CallSitecreateLongDouble(CallSite site, MetaClassImpl metaClass, MetaMethod metaMethod, java.lang.Class[] params, java.lang.Object receiver, java.lang.Object[] args)CallSitecreateLongFloat(CallSite site, MetaClassImpl metaClass, MetaMethod metaMethod, java.lang.Class[] params, java.lang.Object receiver, java.lang.Object[] args)CallSitecreateLongInteger(CallSite site, MetaClassImpl metaClass, MetaMethod metaMethod, java.lang.Class[] params, java.lang.Object receiver, java.lang.Object[] args)CallSitecreateLongLong(CallSite site, MetaClassImpl metaClass, MetaMethod metaMethod, java.lang.Class[] params, java.lang.Object receiver, java.lang.Object[] args)CallSitecreateNumberNumber(CallSite site, MetaClassImpl metaClass, MetaMethod metaMethod, java.lang.Class[] params, java.lang.Object receiver, java.lang.Object[] args)static java.lang.Numberdiv(java.lang.Number left, java.lang.Number right)Divide two Numbers.java.lang.StringgetName()Returns the name of the method represented by this classjava.lang.Objectinvoke(java.lang.Object object, java.lang.Object[] arguments)Invoke this methodMethods inherited from class org.codehaus.groovy.runtime.dgmimpl.NumberNumberMetaMethod
createPojoCallSite, getDeclaringClass, getModifiers, getReturnTypeMethods inherited from class groovy.lang.MetaMethod
checkParameters, clone, doMethodInvoke, equal, equal, getDescriptor, getMopName, getSignature, isAbstract, isCacheable, isMethod, isPrivate, isProtected, isPublic, isSame, isStatic, processDoMethodInvokeException, toStringMethods inherited from class org.codehaus.groovy.reflection.ParameterTypes
coerceArgumentsToClasses, correctArguments, getNativeParameterTypes, getParameterTypes, getPT, isValidExactMethod, isValidExactMethod, isValidMethod, isValidMethod, isVargsMethod, isVargsMethod, setParametersTypesMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Constructor Details
-
NumberNumberDiv
public NumberNumberDiv()
-
-
Method Details
-
getName
public java.lang.String getName()Description copied from class:MetaMethodReturns the name of the method represented by this class- Specified by:
getNamein classMetaMethod- Returns:
- name of this method
-
invoke
public java.lang.Object invoke(java.lang.Object object, java.lang.Object[] arguments)Description copied from class:MetaMethodInvoke this method- Specified by:
invokein classMetaMethod- Parameters:
object- The object this method should be invoked onarguments- The arguments for the method if applicable- Returns:
- The return value of the invocation
-
div
public static java.lang.Number div(java.lang.Number left, java.lang.Number right)Divide two Numbers. Note: Method name different from 'divide' to avoid collision with BigInteger method that has different semantics. We want a BigDecimal result rather than a BigInteger.- Parameters:
left- a Numberright- another Number- Returns:
- a Number resulting of the divide operation
-
createIntegerInteger
public CallSite createIntegerInteger(CallSite site, MetaClassImpl metaClass, MetaMethod metaMethod, java.lang.Class[] params, java.lang.Object receiver, java.lang.Object[] args)- Specified by:
createIntegerIntegerin classNumberNumberMetaMethod
-
createIntegerLong
public CallSite createIntegerLong(CallSite site, MetaClassImpl metaClass, MetaMethod metaMethod, java.lang.Class[] params, java.lang.Object receiver, java.lang.Object[] args)- Specified by:
createIntegerLongin classNumberNumberMetaMethod
-
createIntegerFloat
public CallSite createIntegerFloat(CallSite site, MetaClassImpl metaClass, MetaMethod metaMethod, java.lang.Class[] params, java.lang.Object receiver, java.lang.Object[] args)- Specified by:
createIntegerFloatin classNumberNumberMetaMethod
-
createIntegerDouble
public CallSite createIntegerDouble(CallSite site, MetaClassImpl metaClass, MetaMethod metaMethod, java.lang.Class[] params, java.lang.Object receiver, java.lang.Object[] args)- Specified by:
createIntegerDoublein classNumberNumberMetaMethod
-
createLongInteger
public CallSite createLongInteger(CallSite site, MetaClassImpl metaClass, MetaMethod metaMethod, java.lang.Class[] params, java.lang.Object receiver, java.lang.Object[] args)- Specified by:
createLongIntegerin classNumberNumberMetaMethod
-
createLongLong
public CallSite createLongLong(CallSite site, MetaClassImpl metaClass, MetaMethod metaMethod, java.lang.Class[] params, java.lang.Object receiver, java.lang.Object[] args)- Specified by:
createLongLongin classNumberNumberMetaMethod
-
createLongFloat
public CallSite createLongFloat(CallSite site, MetaClassImpl metaClass, MetaMethod metaMethod, java.lang.Class[] params, java.lang.Object receiver, java.lang.Object[] args)- Specified by:
createLongFloatin classNumberNumberMetaMethod
-
createLongDouble
public CallSite createLongDouble(CallSite site, MetaClassImpl metaClass, MetaMethod metaMethod, java.lang.Class[] params, java.lang.Object receiver, java.lang.Object[] args)- Specified by:
createLongDoublein classNumberNumberMetaMethod
-
createFloatInteger
public CallSite createFloatInteger(CallSite site, MetaClassImpl metaClass, MetaMethod metaMethod, java.lang.Class[] params, java.lang.Object receiver, java.lang.Object[] args)- Specified by:
createFloatIntegerin classNumberNumberMetaMethod
-
createFloatLong
public CallSite createFloatLong(CallSite site, MetaClassImpl metaClass, MetaMethod metaMethod, java.lang.Class[] params, java.lang.Object receiver, java.lang.Object[] args)- Specified by:
createFloatLongin classNumberNumberMetaMethod
-
createFloatFloat
public CallSite createFloatFloat(CallSite site, MetaClassImpl metaClass, MetaMethod metaMethod, java.lang.Class[] params, java.lang.Object receiver, java.lang.Object[] args)- Specified by:
createFloatFloatin classNumberNumberMetaMethod
-
createFloatDouble
public CallSite createFloatDouble(CallSite site, MetaClassImpl metaClass, MetaMethod metaMethod, java.lang.Class[] params, java.lang.Object receiver, java.lang.Object[] args)- Specified by:
createFloatDoublein classNumberNumberMetaMethod
-
createDoubleInteger
public CallSite createDoubleInteger(CallSite site, MetaClassImpl metaClass, MetaMethod metaMethod, java.lang.Class[] params, java.lang.Object receiver, java.lang.Object[] args)- Specified by:
createDoubleIntegerin classNumberNumberMetaMethod
-
createDoubleLong
public CallSite createDoubleLong(CallSite site, MetaClassImpl metaClass, MetaMethod metaMethod, java.lang.Class[] params, java.lang.Object receiver, java.lang.Object[] args)- Specified by:
createDoubleLongin classNumberNumberMetaMethod
-
createDoubleFloat
public CallSite createDoubleFloat(CallSite site, MetaClassImpl metaClass, MetaMethod metaMethod, java.lang.Class[] params, java.lang.Object receiver, java.lang.Object[] args)- Specified by:
createDoubleFloatin classNumberNumberMetaMethod
-
createDoubleDouble
public CallSite createDoubleDouble(CallSite site, MetaClassImpl metaClass, MetaMethod metaMethod, java.lang.Class[] params, java.lang.Object receiver, java.lang.Object[] args)- Specified by:
createDoubleDoublein classNumberNumberMetaMethod
-
createNumberNumber
public CallSite createNumberNumber(CallSite site, MetaClassImpl metaClass, MetaMethod metaMethod, java.lang.Class[] params, java.lang.Object receiver, java.lang.Object[] args)- Specified by:
createNumberNumberin classNumberNumberMetaMethod
-