public final class CachedMethodCallSites
extends Object
Creates optimized call sites for CachedMethod instances. Logic formerly lived on CachedMethod in groovy-core.
Per-method compile state is held in a side map (not on CachedMethod)
so groovy-core reflection metadata stays free of classic call-site concerns.
State mutations for a given method are synchronized on that method's state
object.
Prefer invokedynamic call sites for new code. Planned for deprecation/removal in a future Groovy version.
| Type Params | Return Type | Name and description |
|---|---|---|
|
public static CallSite |
createPogoMetaMethodSite(CachedMethod method, CallSite site, MetaClassImpl metaClass, Class[] params)Creates an optimized POGO call site, compiling a specialized site class when possible. |
|
public static CallSite |
createPojoMetaMethodSite(CachedMethod method, CallSite site, MetaClassImpl metaClass, Class[] params)Creates an optimized POJO call site, compiling a specialized site class when possible. |
|
public static CallSite |
createStaticMetaMethodSite(CachedMethod method, CallSite site, MetaClassImpl metaClass, Class[] params)Creates an optimized static call site, compiling a specialized site class when possible. |
Creates an optimized POGO call site, compiling a specialized site class when possible.
Creates an optimized POJO call site, compiling a specialized site class when possible.
Creates an optimized static call site, compiling a specialized site class when possible.