Groovy Documentation

org.codehaus.groovy.runtime.dgmimpl
[Java] Class NumberNumberPlus

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.NumberNumberPlus

public final class NumberNumberPlus
extends NumberNumberMetaMethod

Field Summary
 
Fields inherited from class ParameterTypes
isVargsMethod, nativeParamTypes, parameterTypes
 
Method Summary
CallSite createPojoCallSite(CallSite site, MetaClassImpl metaClass, MetaMethod metaMethod, java.lang.Class[] params, java.lang.Object receiver, java.lang.Object[] args)

java.lang.String getName()

java.lang.Object invoke(java.lang.Object object, java.lang.Object[] arguments)

static java.lang.Number plus(java.lang.Number left, java.lang.Number right)

Add two numbers and return the result.

 
Methods inherited from class NumberNumberMetaMethod
getDeclaringClass, getModifiers, getReturnType
 
Methods inherited from class CallSiteAwareMetaMethod
createPojoCallSite
 
Methods inherited from class MetaMethod
checkParameters, clone, doMethodInvoke, equal, equal, getDeclaringClass, getDescriptor, getModifiers, getMopName, getName, getReturnType, getSignature, invoke, isAbstract, isCacheable, isMethod, isPrivate, isProtected, isPublic, isSame, isStatic, processDoMethodInvokeException, toString
 
Methods inherited from class ParameterTypes
coerceArgumentsToClasses, correctArguments, getNativeParameterTypes, getPT, getParameterTypes, isValidExactMethod, isValidExactMethod, isValidMethod, isValidMethod, isVargsMethod, isVargsMethod, setParametersTypes
 
Methods inherited from class java.lang.Object
java.lang.Object#wait(long), java.lang.Object#wait(long, int), java.lang.Object#wait(), java.lang.Object#equals(java.lang.Object), java.lang.Object#toString(), java.lang.Object#hashCode(), java.lang.Object#getClass(), java.lang.Object#notify(), java.lang.Object#notifyAll()
 

Method Detail

createPojoCallSite

public CallSite createPojoCallSite(CallSite site, MetaClassImpl metaClass, MetaMethod metaMethod, java.lang.Class[] params, java.lang.Object receiver, java.lang.Object[] args)


getName

public java.lang.String getName()


invoke

public java.lang.Object invoke(java.lang.Object object, java.lang.Object[] arguments)


plus

public static java.lang.Number plus(java.lang.Number left, java.lang.Number right)
Add two numbers and return the result.
Parameters:
left - a Number
right - another Number to add
Returns:
the addition of both Numbers


 

Groovy Documentation