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.
| Interface | Description |
|---|---|
| CallSite | Classic (non-invokedynamic) call site. |
| Class | Description |
|---|---|
| AbstractCallSite | Base class for all classic (non-invokedynamic) call sites. |
| BooleanClosureForMapPredicate |
|
| BooleanClosurePredicate |
|
| BooleanClosureWrapper | Helper class for internal use only. |
| BooleanReturningMethodInvoker | Helper class for internal use only. |
| CachedMethodCallSites | Creates optimized call sites for CachedMethod instances. |
| CallSiteArray | Array of classic (non-invokedynamic) call sites for a compiled class. |
| CallSiteClassLoader | Class loader used when generating specialized classic call-site classes. |
| CallSiteGenerator | Generates specialized call-site classes for the classic (non-indy) call-site cache. |
| ConstructorMetaClassSite | Call site that invokes a constructor through a MetaClass when the receiver is that meta class's class. |
| ConstructorMetaMethodSite | Call site for invoking static methods metaclass - cached method - not cached |
| ConstructorSite | Call site bound to one CachedConstructor. |
| ConstructorSite.ConstructorSiteNoUnwrap | Call site where we know there is no need to unwrap arguments |
| ConstructorSite.ConstructorSiteNoUnwrapNoCoerce | Call site where we know there is no need neither unwrap nor coerce arguments |
| ConstructorSite.NoParamSite | Constructor site that, after the inherited checkCall(Object, Object[])
passes, invokes the cached constructor with an empty argument array
and then applies args[0] as a property map. |
| ConstructorSite.NoParamSiteInnerClass | Constructor site that, after the inherited checkCall(Object, Object[])
passes, invokes the cached constructor with only args[0] and
then applies args[1] as a property map. |
| GetEffectivePogoFieldSite | Call site that reads a field through a cached CachedField while the receiver is a GroovyObject whose meta class is the one captured here and no category is active on the current thread. |
| GetEffectivePojoPropertySite | Call site that reads a POJO property through a cached MetaProperty while the MetaClassImpl version is unchanged and no category is active. |
| MetaClassCallSites | Builds classic (non-indy) call sites for a MetaClassImpl. |
| MetaClassConstructorSite | Call site for constructor metaclass - cached method - not cached |
| MetaClassSite | Call site which holds reference to metaclass. |
| MetaMethodSite | Call site which caches meta method |
| NullCallSite | Call site that sends a null receiver to NullObject
before the default call or property read. |
| PerInstancePojoMetaClassSite | Call site that dispatches through a receiver's per-instance meta class while ClassInfo reports that such meta classes are in use. |
| PlainObjectMetaMethodSite | Plain ordinary object call site metaclass - cached method - cached |
| PogoGetPropertySite | Call site that reads a property from a GroovyObject whose runtime class is the class captured when the site was built. |
| PogoInterceptableSite | Call site for GroovyInterceptable |
| PogoMetaClassGetPropertySite | Call site that reads a property through a GroovyObject's MetaClass while that meta class is still the one captured here. |
| PogoMetaClassSite | Call site for a Groovy object whose meta-class is cached and whose method is not. |
| PogoMetaMethodSite | POGO call site metaclass - cached method - cached |
| PogoMetaMethodSite.PogoCachedMethodSite | POGO site that invokes a reflected Method. |
| PogoMetaMethodSite.PogoCachedMethodSiteNoUnwrap | Reflected POGO site that skips MetaClassHelper.unwrap. |
| PogoMetaMethodSite.PogoCachedMethodSiteNoUnwrapNoCoerce | Reflected POGO site that skips both MetaClassHelper.unwrap and MetaMethod.coerceArgumentsToClasses. |
| PogoMetaMethodSite.PogoMetaMethodSiteNoUnwrap | Call site where we know there is no need to unwrap arguments |
| PogoMetaMethodSite.PogoMetaMethodSiteNoUnwrapNoCoerce | Call site where we know there is no need neither unwrap nor coerce arguments |
| PojoMetaClassGetPropertySite | Property-read call site for a plain receiver. |
| PojoMetaClassSite | POJO call site metaclass - cached method - not cached |
| PojoMetaMethodSite | POJO call site metaclass - cached method - cached |
| PojoMetaMethodSite.PojoCachedMethodSite | POJO site that invokes a reflected Method. |
| PojoMetaMethodSite.PojoCachedMethodSiteNoUnwrap | Reflected POJO site that skips MetaClassHelper.unwrap. |
| PojoMetaMethodSite.PojoCachedMethodSiteNoUnwrapNoCoerce | Reflected POJO site that skips both MetaClassHelper.unwrap and MetaMethod.coerceArgumentsToClasses. |
| PojoMetaMethodSite.PojoMetaMethodSiteNoUnwrap | Call site where we know there is no need to unwrap arguments |
| PojoMetaMethodSite.PojoMetaMethodSiteNoUnwrapNoCoerce | Call site where we know there is no need neither unwrap nor coerce arguments |
| StaticMetaClassSite | Call site for invoking static methods metaclass - cached method - not cached |
| StaticMetaMethodSite | POJO call site metaclass - cached method - cached |
| StaticMetaMethodSite.StaticMetaMethodSiteNoUnwrap | Call site where we know there is no need to unwrap arguments |
| StaticMetaMethodSite.StaticMetaMethodSiteNoUnwrapNoCoerce | Call site where we know there is no need neither unwrap nor coerce arguments |