Top Inners Fields Constructors Methods
org.codehaus.groovy.runtime.dgmimpl.arrays

public Class ObjectArrayPutAtMetaMethod

extends ArrayPutAtMetaMethod
Class Inheritance
Imports
groovy.lang.GString, .MetaClassImpl, .MetaMethod, org.codehaus.groovy.reflection.CachedClass, .ReflectionCache, org.codehaus.groovy.runtime.callsite.CallSite, .PojoMetaMethodSite, org.codehaus.groovy.runtime.typehandling.DefaultTypeTransformation

Nested and Inner Type Summary

Modifier and TypeClass and Description
private static class

Field Summary

Modifier and TypeField and Description
private static final CachedClass
private static final CachedClass
private static final CachedClass[]

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
private static Object
adjustNewValue(Object[] objects, Object newValue)

public CallSite
public final CachedClass
getDeclaringClass()

Implements abstract groovy.lang.MetaMethod.getDeclaringClass.

Gets the class where this method is declared
public Object
invoke(Object
The object this method should be invoked on
object
,
Object[]
The arguments for the method if applicable
arguments
)

Implements abstract groovy.lang.MetaMethod.invoke.

Invoke this method
Inherited from org.codehaus.groovy.runtime.dgmimpl.arrays.ArrayPutAtMetaMethod:
getNamegetReturnType

Field Detail

OBJECT_ARR_CLASSback to summary
private static final CachedClass OBJECT_ARR_CLASS
OBJECT_CLASSback to summary
private static final CachedClass OBJECT_CLASS
PARAM_CLASS_ARRback to summary
private static final CachedClass[] PARAM_CLASS_ARR

Constructor Detail

ObjectArrayPutAtMetaMethodback to summary
public ObjectArrayPutAtMetaMethod()

Method Detail

adjustNewValueback to summary
private static Object adjustNewValue(Object[] objects, Object newValue)
createPojoCallSiteback to summary
public CallSite createPojoCallSite(CallSite site, MetaClassImpl metaClass, MetaMethod metaMethod, Class<T>[] params, Object receiver, Object[] args)

Implements abstract org.codehaus.groovy.runtime.callsite.CallSiteAwareMetaMethod.createPojoCallSite.

getDeclaringClassback to summary
public final CachedClass getDeclaringClass()

Implements abstract groovy.lang.MetaMethod.getDeclaringClass.

Doc from groovy.lang.MetaMethod.getDeclaringClass.

Gets the class where this method is declared

Returns:CachedClass

class of this method

invokeback to summary
public Object invoke(Object object, Object[] arguments)

Implements abstract groovy.lang.MetaMethod.invoke.

Doc from groovy.lang.MetaMethod.invoke.

Invoke this method

Parameters
object:Object

The object this method should be invoked on

arguments:Object[]

The arguments for the method if applicable

Returns:Object

The return value of the invocation

org.codehaus.groovy.runtime.dgmimpl.arrays back to summary

private Class ObjectArrayPutAtMetaMethod.MyPojoMetaMethodSite

extends PojoMetaMethodSite
Class Inheritance

Field Summary

Inherited from org.codehaus.groovy.runtime.callsite.PojoMetaMethodSite:
version

Constructor Summary

AccessConstructor and Description
public
MyPojoMetaMethodSite(CallSite site, MetaClassImpl metaClass, MetaMethod metaMethod, Class<T>[] params)

Method Summary

Modifier and TypeMethod and Description
public Object
Inherited from org.codehaus.groovy.runtime.callsite.PojoMetaMethodSite:
callcheckCallcheckCallcheckCallcheckCallcheckCallcheckCallcheckPojoMetaClasscreateCachedMethodSitecreateNonAwareCallSitecreatePojoMetaMethodSiteinvoke

Constructor Detail

MyPojoMetaMethodSiteback to summary
public MyPojoMetaMethodSite(CallSite site, MetaClassImpl metaClass, MetaMethod metaMethod, Class<T>[] params)

Method Detail

callback to summary
public Object call(Object receiver, Object arg1, Object arg2) throws Throwable

Overrides org.codehaus.groovy.runtime.callsite.AbstractCallSite.call.

Implements org.codehaus.groovy.runtime.callsite.CallSite.call.