Package org.codehaus.groovy.runtime.callsite
invokedynamic) call-site caching.
Primary purpose (GROOVY-11158): preserve runtime binary
compatibility for classes compiled by Groovy 4 and Groovy 5 (and by
earlier releases that always used classic call sites). Those classes
link against CallSiteArray and CallSite; with this
optional module on the classpath they must still load and execute on
Groovy 6. The public linkage surface of those types is stable for that
reason.
The same types also support compiling with indy disabled.
Groovy 6 core uses invokedynamic for new compilation by default and
does not depend on this package. Add groovy-callsite only when
classic bytecode must still be produced or executed.
Prefer invokedynamic call sites for new code. This entire package is planned for deprecation/removal in a future Groovy version.
- Since:
- 1.5 (relocated to the
groovy-callsitemodule in 6.0)
-
ClassDescriptionBase class for all classic (non-
invokedynamic) call sites.Deprecated, for removal: This API element is subject to removal in a future version.Deprecated, for removal: This API element is subject to removal in a future version.UseBooleanClosurePredicateinstead.Deprecated, for removal: This API element is subject to removal in a future version.UseBooleanClosureWrapperinstead.Deprecated, for removal: This API element is subject to removal in a future version.Creates optimized call sites forCachedMethodinstances.Classic (non-invokedynamic) call site.Array of classic (non-invokedynamic) call sites for a compiled class.Class loader used when generating specialized classic call-site classes.Generates specialized call-site classes for the classic (non-indy) call-site cache.Call site that invokes a constructor through aMetaClasswhen the receiver is that meta class's class.Call site for invoking static methods metaclass - cached method - not cachedCall site bound to oneCachedConstructor.Call site where we know there is no need to unwrap argumentsCall site where we know there is no need neither unwrap nor coerce argumentsConstructor site that, after the inheritedConstructorSite.checkCall(Object, Object[])passes, invokes the cached constructor with an empty argument array and then appliesargs[0]as a property map.Constructor site that, after the inheritedConstructorSite.checkCall(Object, Object[])passes, invokes the cached constructor with onlyargs[0]and then appliesargs[1]as a property map.Call site that reads a field through a cachedCachedFieldwhile the receiver is aGroovyObjectwhose meta class is the one captured here and no category is active on the current thread.Call site that reads a POJO property through a cachedMetaPropertywhile theMetaClassImplversion is unchanged and no category is active.Builds classic (non-indy) call sites for aMetaClassImpl.Call site for constructor metaclass - cached method - not cachedCall site which holds reference to metaclass.Call site which caches meta methodCall site that sends anullreceiver toNullObjectbefore the default call or property read.Call site that dispatches through a receiver's per-instance meta class whileClassInforeports that such meta classes are in use.Plain ordinary object call site metaclass - cached method - cachedCall site that reads a property from aGroovyObjectwhose runtime class is the class captured when the site was built.Call site for GroovyInterceptableCall site that reads a property through aGroovyObject'sMetaClasswhile that meta class is still the one captured here.Call site for a Groovy object whose meta-class is cached and whose method is not.POGO call site metaclass - cached method - cachedPOGO site that invokes a reflectedMethod.Reflected POGO site that skipsMetaClassHelper.unwrap(Object[]).Reflected POGO site that skips bothMetaClassHelper.unwrap(Object[])andParameterTypes.coerceArgumentsToClasses(Object[]).Call site where we know there is no need to unwrap argumentsCall site where we know there is no need neither unwrap nor coerce argumentsProperty-read call site for a plain receiver.POJO call site metaclass - cached method - not cachedPOJO call site metaclass - cached method - cachedPOJO site that invokes a reflectedMethod.Reflected POJO site that skipsMetaClassHelper.unwrap(Object[]).Reflected POJO site that skips bothMetaClassHelper.unwrap(Object[])andParameterTypes.coerceArgumentsToClasses(Object[]).Call site where we know there is no need to unwrap argumentsCall site where we know there is no need neither unwrap nor coerce argumentsCall site for invoking static methods metaclass - cached method - not cachedPOJO call site metaclass - cached method - cachedCall site where we know there is no need to unwrap argumentsCall site where we know there is no need neither unwrap nor coerce arguments
BooleanClosureForMapPredicateinstead.