Class PojoMetaClassSite
java.lang.Object
org.codehaus.groovy.runtime.callsite.AbstractCallSite
org.codehaus.groovy.runtime.callsite.MetaClassSite
org.codehaus.groovy.runtime.callsite.PojoMetaClassSite
- All Implemented Interfaces:
CallSite
POJO call site
metaclass - cached
method - not cached
-
Field Summary
Fields inherited from class org.codehaus.groovy.runtime.callsite.MetaClassSite
metaClassFields inherited from class org.codehaus.groovy.runtime.callsite.AbstractCallSite
array, index, name -
Constructor Summary
ConstructorsConstructorDescriptionPojoMetaClassSite(CallSite site, MetaClass metaClass) CachesmetaClassand theClassInfoversion of its class. -
Method Summary
Modifier and TypeMethodDescriptionWhencheckCall(Object)matches, invokesnamethrough the cached meta-class.protected final booleanReturns whetherreceiveris non-null, its runtime class is the meta-class's class, and that class'sClassInfoversion is still the version recorded when this site was created.Methods inherited from class org.codehaus.groovy.runtime.callsite.AbstractCallSite
acceptGetProperty, acceptGroovyObjectGetProperty, 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
-
Constructor Details
-
PojoMetaClassSite
CachesmetaClassand theClassInfoversion of its class.
-
-
Method Details
-
call
WhencheckCall(Object)matches, invokesnamethrough the cached meta-class. AGroovyRuntimeExceptionis rethrown viaScriptBytecodeAdapter.unwrap(GroovyRuntimeException). Otherwise falls back toCallSiteArray.defaultCall(CallSite, Object, Object[]).- Specified by:
callin interfaceCallSite- Overrides:
callin classAbstractCallSite- Parameters:
receiver- the target of the callargs- the arguments, in order- Returns:
- the value returned by the method
- Throws:
Throwable- when the call fails
-
checkCall
Returns whetherreceiveris non-null, its runtime class is the meta-class's class, and that class'sClassInfoversion is still the version recorded when this site was created.
-