Class PojoMetaMethodSite.PojoCachedMethodSiteNoUnwrap
java.lang.Object
org.codehaus.groovy.runtime.callsite.AbstractCallSite
org.codehaus.groovy.runtime.callsite.MetaClassSite
org.codehaus.groovy.runtime.callsite.MetaMethodSite
org.codehaus.groovy.runtime.callsite.PlainObjectMetaMethodSite
org.codehaus.groovy.runtime.callsite.PojoMetaMethodSite
org.codehaus.groovy.runtime.callsite.PojoMetaMethodSite.PojoCachedMethodSite
org.codehaus.groovy.runtime.callsite.PojoMetaMethodSite.PojoCachedMethodSiteNoUnwrap
- All Implemented Interfaces:
CallSite
- Enclosing class:
- PojoMetaMethodSite
public static class PojoMetaMethodSite.PojoCachedMethodSiteNoUnwrap
extends PojoMetaMethodSite.PojoCachedMethodSite
Reflected POJO site that skips
MetaClassHelper.unwrap(Object[]).
invoke still coerces with
ParameterTypes.coerceArgumentsToClasses(Object[]) before
PlainObjectMetaMethodSite.doInvoke(java.lang.Object, java.lang.Object[], java.lang.reflect.Method). Receiver, category, version,
and argument-class checks stay those of PojoMetaMethodSite.-
Nested Class Summary
Nested classes/interfaces inherited from class org.codehaus.groovy.runtime.callsite.PojoMetaMethodSite
PojoMetaMethodSite.PojoCachedMethodSite, PojoMetaMethodSite.PojoCachedMethodSiteNoUnwrap, PojoMetaMethodSite.PojoCachedMethodSiteNoUnwrapNoCoerce, PojoMetaMethodSite.PojoMetaMethodSiteNoUnwrap, PojoMetaMethodSite.PojoMetaMethodSiteNoUnwrapNoCoerce -
Field Summary
Fields inherited from class org.codehaus.groovy.runtime.callsite.PojoMetaMethodSite
versionFields inherited from class org.codehaus.groovy.runtime.callsite.MetaMethodSite
paramsFields inherited from class org.codehaus.groovy.runtime.callsite.MetaClassSite
metaClassFields inherited from class org.codehaus.groovy.runtime.callsite.AbstractCallSite
array, index, name -
Constructor Summary
ConstructorsConstructorDescriptionPojoCachedMethodSiteNoUnwrap(CallSite site, MetaClassImpl metaClass, MetaMethod metaMethod, Class[] params) Delegates toPojoMetaMethodSite.PojoCachedMethodSite, recording the same meta-class version and reflected method. -
Method Summary
Modifier and TypeMethodDescriptionfinal ObjectCoercesargswithParameterTypes.coerceArgumentsToClasses(Object[])and invokes the reflected method throughPlainObjectMetaMethodSite.doInvoke(java.lang.Object, java.lang.Object[], java.lang.reflect.Method).Methods inherited from class org.codehaus.groovy.runtime.callsite.PojoMetaMethodSite
call, checkCall, checkCall, checkCall, checkCall, checkCall, checkCall, checkPojoMetaClass, createCachedMethodSite, createNonAwareCallSite, createPojoMetaMethodSiteMethods inherited from class org.codehaus.groovy.runtime.callsite.PlainObjectMetaMethodSite
doInvokeMethods inherited from class org.codehaus.groovy.runtime.callsite.AbstractCallSite
acceptGetProperty, acceptGroovyObjectGetProperty, call, call, call, call, call, callConstructor, callConstructor, callConstructor, callConstructor, callConstructor, callConstructor, callCurrent, callCurrent, callCurrent, callCurrent, callCurrent, callCurrent, callGetProperty, callGetPropertySafe, callGroovyObjectGetProperty, callGroovyObjectGetPropertySafe, callSafe, callSafe, callSafe, callSafe, callSafe, callSafe, callStatic, callStatic, callStatic, callStatic, callStatic, callStatic, createGetPropertySite, createGroovyObjectGetPropertySite, getArray, getIndex, getName, getProperty
-
Constructor Details
-
PojoCachedMethodSiteNoUnwrap
public PojoCachedMethodSiteNoUnwrap(CallSite site, MetaClassImpl metaClass, MetaMethod metaMethod, Class[] params) Delegates toPojoMetaMethodSite.PojoCachedMethodSite, recording the same meta-class version and reflected method.
-
-
Method Details
-
invoke
CoercesargswithParameterTypes.coerceArgumentsToClasses(Object[])and invokes the reflected method throughPlainObjectMetaMethodSite.doInvoke(java.lang.Object, java.lang.Object[], java.lang.reflect.Method). SkipsMetaClassHelper.unwrap(Object[])and performs no receiver, meta-class version, or argument-class check.- Overrides:
invokein classPojoMetaMethodSite.PojoCachedMethodSite- Throws:
Throwable
-