public class PogoMetaClassSite
extends MetaClassSite
Call site for a Groovy object whose meta-class is cached and whose method is not. Dispatch uses that meta-class while checkCall(Object) still matches, and the default call path otherwise. A missing method for the receiver's own type is retried through GroovyObject.invokeMethod.
| Fields inherited from class | Fields |
|---|---|
class MetaClassSite |
metaClass |
class AbstractCallSite |
array, index, name |
| Constructor and description |
|---|
PogoMetaClassSite(CallSite site, MetaClass metaClass)Caches metaClass for later dispatch from this site. |
| Type Params | Return Type | Name and description |
|---|---|---|
|
public final Object |
call(Object receiver, Object[] args)When checkCall(Object) matches, invokes name on
receiver through the cached meta-class. |
|
public final Object |
callCurrent(GroovyObject receiver, Object[] args)When checkCall(Object) matches, invokes name through the
cached meta-class as a call from inside the call-site array's owner
(isCallToSuper false, fromInsideClass true).
|
|
protected final boolean |
checkCall(Object receiver)Returns whether receiver is a GroovyObject whose current
meta-class is still the one cached by this site. |
| Methods inherited from class | Name |
|---|---|
class AbstractCallSite |
acceptGetProperty, acceptGroovyObjectGetProperty, call, 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 |
When checkCall(Object) matches, invokes name on
receiver through the cached meta-class. A
MissingMethodExecutionFailed is rethrown as its cause. A
MissingMethodException for this name on the receiver's class
is retried with GroovyObject.invokeMethod.
A GroovyRuntimeException is rethrown via
ScriptBytecodeAdapter.unwrap.
Otherwise falls back to CallSiteArray.defaultCall.
When checkCall(Object) matches, invokes name through the
cached meta-class as a call from inside the call-site array's owner
(isCallToSuper false, fromInsideClass true).
A MissingMethodExecutionFailed is rethrown as its cause. A
MissingMethodException for this name on the receiver's class is
retried with GroovyObject.invokeMethod; if that
also misses and is not a MissingMethodExecutionFailed, the cached
meta-class is invoked again without the sender. A
GroovyRuntimeException is rethrown via
ScriptBytecodeAdapter.unwrap.
Otherwise falls back to
CallSiteArray.defaultCallCurrent.
Returns whether receiver is a GroovyObject whose current
meta-class is still the one cached by this site.
Copyright © 2003-2026 The Apache Software Foundation. All rights reserved.