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 for invoking static methods metaclass - cached method - not cachedCall site where we know there is no need to unwrap argumentsCall site where we know there is no need neither unwrap nor coerce argumentsBuilds 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 methodPlain ordinary object call site metaclass - cached method - cachedCall site for GroovyInterceptablePOGO 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 argumentsPOJO call site 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 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.