Class PerInstancePojoMetaClassSite
java.lang.Object
org.codehaus.groovy.runtime.callsite.AbstractCallSite
org.codehaus.groovy.runtime.callsite.PerInstancePojoMetaClassSite
- All Implemented Interfaces:
CallSite
Call site that dispatches through a receiver's per-instance meta class
while
ClassInfo reports that such meta classes are in use.-
Field Summary
Fields inherited from class org.codehaus.groovy.runtime.callsite.AbstractCallSite
array, index, name -
Constructor Summary
ConstructorsConstructorDescriptionPerInstancePojoMetaClassSite(CallSite site, ClassInfo info) Copies the parent site and remembers where per-instance meta classes are tracked. -
Method Summary
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
-
PerInstancePojoMetaClassSite
Copies the parent site and remembers where per-instance meta classes are tracked.- Parameters:
site- the site whose name and index are copiedinfo- class information used to detect per-instance meta classes
-
-
Method Details
-
call
Invokes this site's method on the receiver's meta class when the receiver is non-null and per-instance meta classes are in use. AGroovyRuntimeExceptionis unwrapped. Otherwise uses the default call.- 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
-