public class PojoMetaClassSite
extends MetaClassSite
POJO call site metaclass - cached method - not cached
| Fields inherited from class | Fields |
|---|---|
class MetaClassSite |
metaClass |
class AbstractCallSite |
array, index, name |
| Constructor and description |
|---|
PojoMetaClassSite(CallSite site, MetaClass metaClass)Caches metaClass and the ClassInfo version of its class. |
| Type Params | Return Type | Name and description |
|---|---|---|
|
public Object |
call(Object receiver, Object[] args)When checkCall(Object) matches, invokes name through the
cached meta-class. |
|
protected final boolean |
checkCall(Object receiver)Returns whether receiver is non-null, its runtime class is the
meta-class's class, and that class's ClassInfo version is still
the version recorded when this site was created. |
| 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 through the
cached meta-class. A GroovyRuntimeException is rethrown via
ScriptBytecodeAdapter.unwrap.
Otherwise falls back to CallSiteArray.defaultCall.
Copyright © 2003-2026 The Apache Software Foundation. All rights reserved.