Class PogoInterceptableSite
java.lang.Object
org.codehaus.groovy.runtime.callsite.AbstractCallSite
org.codehaus.groovy.runtime.callsite.PogoInterceptableSite
- All Implemented Interfaces:
CallSite
Call site for GroovyInterceptable
-
Field Summary
Fields inherited from class org.codehaus.groovy.runtime.callsite.AbstractCallSite
array, index, name -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal ObjectWhenreceiveris aGroovyObject, sendsnamethroughGroovyObject.invokeMethod(String, Object)withargsunwrapped.callCurrent(GroovyObject receiver, Object[] args) final ObjectSendsnametoreceiverthroughGroovyObject.invokeMethod(String, Object), withargsunwrapped byInvokerHelper.asUnwrappedArray(Object).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, callGetProperty, callGetPropertySafe, callGroovyObjectGetProperty, callGroovyObjectGetPropertySafe, callSafe, callSafe, callSafe, callSafe, callSafe, callSafe, callStatic, callStatic, callStatic, callStatic, callStatic, callStatic, createGetPropertySite, createGroovyObjectGetPropertySite, getArray, getIndex, getName, getProperty
-
Constructor Details
-
PogoInterceptableSite
Copies the call metadata fromsite.- Parameters:
site- the site whose name and index are reused
-
-
Method Details
-
invoke
SendsnametoreceiverthroughGroovyObject.invokeMethod(String, Object), withargsunwrapped byInvokerHelper.asUnwrappedArray(Object). AGroovyRuntimeExceptionis rethrown viaScriptBytecodeAdapter.unwrap(GroovyRuntimeException).- Parameters:
receiver- aGroovyObjectargs- the call arguments- Returns:
- the result of
invokeMethod - Throws:
Throwable
-
call
Whenreceiveris aGroovyObject, sendsnamethroughGroovyObject.invokeMethod(String, Object)withargsunwrapped. Otherwise uses the default call. AGroovyRuntimeExceptionfrom the Groovy receiver is rethrown viaScriptBytecodeAdapter.unwrap(GroovyRuntimeException).- Specified by:
callin interfaceCallSite- Overrides:
callin classAbstractCallSite- Parameters:
receiver- the call receiverargs- the call arguments- Returns:
- the call result
- Throws:
Throwable- when the call fails
-
callCurrent
- Specified by:
callCurrentin interfaceCallSite- Overrides:
callCurrentin classAbstractCallSite- Parameters:
receiver- the current objectargs- the call arguments- Returns:
- the call result
- Throws:
Throwable- when the call fails
-