org.codehaus.groovy.runtime.callsite
Class CallSiteArray
All call site calls done via CallSiteArray
Groovy compiler creates static CallSiteArray field for each compiled class
One index in array correspond to one method or constructor call (non-spreaded, spreded ones dispatched regular way)
CallSiteArray has several methods of the same type (call, callSafe, callCurrent, callStatic and callConstructor)
Each method does more or less the same
- ask if existing site is valid for receiver and arguments
- if necessary create new site and replace existing one
- ask call site to make the call
- author:
- Alex Tkachman
CallSiteArray
public CallSiteArray(Class owner, def names)
-