| Modifiers | Name | Description |
|---|---|---|
protected CallSiteArray |
array |
CallSiteArray that owns this site and stores it at index. |
protected int |
index |
Position of this site in array. |
protected String |
name |
Name of the call or property this site resolves. |
| Constructor and description |
|---|
AbstractCallSite(CallSiteArray array, int index, String name)Creates a site for name at index in array. |
AbstractCallSite(CallSite prev)Creates a site that copies the name, index, and owning array from prev. |
| Type Params | Return Type | Name and description |
|---|---|---|
|
public CallSite |
acceptGetProperty(Object receiver)Returns the property-read site createGetPropertySite(Object) selects for receiver. |
|
public CallSite |
acceptGroovyObjectGetProperty(Object receiver)Returns the property-read site createGroovyObjectGetPropertySite(Object) selects for receiver. |
|
public Object |
call(Object receiver, Object[] args)Forwards this site, receiver, and args to
CallSiteArray.defaultCall. |
|
public Object |
call(Object receiver)Forwards to call(Object, Object[]) with an empty argument array (CallSiteArray.NOPARAM). |
|
public Object |
call(Object receiver, Object arg1)When array holds a different site at index, forwards receiver and arg1 to
CallSite.call on that site. |
|
public Object |
call(Object receiver, Object arg1, Object arg2)When array holds a different site at index, forwards receiver, arg1, and arg2 to
CallSite.call on that site.
|
|
public Object |
call(Object receiver, Object arg1, Object arg2, Object arg3)When array holds a different site at index, forwards receiver, arg1, arg2, and
arg3 to CallSite.call
on that site. |
|
public Object |
call(Object receiver, Object arg1, Object arg2, Object arg3, Object arg4)When array holds a different site at index, forwards receiver and arg1 through arg4 to
CallSite.call on that
site. |
|
public Object |
callConstructor(Object receiver, Object[] args)Forwards this site, the class to construct ( receiver), and
args to
CallSiteArray.defaultCallConstructor. |
|
public Object |
callConstructor(Object receiver)Forwards to callConstructor(Object, Object[]) with an empty argument array (CallSiteArray.NOPARAM). |
|
public Object |
callConstructor(Object receiver, Object arg1)When array holds a different site at index, forwards receiver and arg1 to
CallSite.callConstructor on that site.
|
|
public Object |
callConstructor(Object receiver, Object arg1, Object arg2)When array holds a different site at index, forwards receiver, arg1, and arg2 to
CallSite.callConstructor on that site.
|
|
public Object |
callConstructor(Object receiver, Object arg1, Object arg2, Object arg3)When array holds a different site at index, forwards receiver, arg1, arg2, and
arg3 to
CallSite.callConstructor
on that site. |
|
public Object |
callConstructor(Object receiver, Object arg1, Object arg2, Object arg3, Object arg4)When array holds a different site at index, forwards receiver and arg1 through arg4 to
CallSite.callConstructor
on that site. |
|
public Object |
callCurrent(GroovyObject receiver, Object[] args)Forwards this site, the GroovyObject receiver, and
args to
CallSiteArray.defaultCallCurrent. |
|
public Object |
callCurrent(GroovyObject receiver)Forwards to callCurrent(GroovyObject, Object[]) with an empty argument array (CallSiteArray.NOPARAM). |
|
public Object |
callCurrent(GroovyObject receiver, Object arg1)When array holds a different site at index, forwards receiver and arg1 to
CallSite.callCurrent on that site.
|
|
public Object |
callCurrent(GroovyObject receiver, Object arg1, Object arg2)When array holds a different site at index, forwards receiver, arg1, and arg2 to
CallSite.callCurrent on that
site. |
|
public Object |
callCurrent(GroovyObject receiver, Object arg1, Object arg2, Object arg3)When array holds a different site at index, forwards receiver, arg1, arg2, and
arg3 to
CallSite.callCurrent
on that site. |
|
public Object |
callCurrent(GroovyObject receiver, Object arg1, Object arg2, Object arg3, Object arg4)When array holds a different site at index, forwards receiver and arg1 through arg4 to
CallSite.callCurrent
on that site. |
|
public Object |
callGetProperty(Object receiver)Reads the property named by getName() from receiver
through the site acceptGetProperty(Object) returns. |
|
public final Object |
callGetPropertySafe(Object receiver)Returns null when receiver is null;
otherwise forwards to callGetProperty(Object). |
|
public Object |
callGroovyObjectGetProperty(Object receiver)Reads the property named by getName(). |
|
public final Object |
callGroovyObjectGetPropertySafe(Object receiver)Returns null when receiver is null;
otherwise forwards to callGroovyObjectGetProperty(Object). |
|
public final Object |
callSafe(Object receiver, Object[] args)Returns null when receiver is null;
otherwise forwards args to call(Object, Object[]). |
|
public final Object |
callSafe(Object receiver)Returns null when receiver is null;
otherwise forwards to call(Object) with no arguments. |
|
public final Object |
callSafe(Object receiver, Object arg1)Returns null when receiver is null;
otherwise forwards arg1 to call(Object, Object). |
|
public final Object |
callSafe(Object receiver, Object arg1, Object arg2)Returns null when receiver is null;
otherwise forwards arg1 and arg2 to
call(Object, Object, Object). |
|
public final Object |
callSafe(Object receiver, Object arg1, Object arg2, Object arg3)Returns null when receiver is null;
otherwise forwards arg1, arg2, and arg3 to
call(Object, Object, Object, Object). |
|
public Object |
callSafe(Object receiver, Object arg1, Object arg2, Object arg3, Object arg4)Returns null when receiver is null;
otherwise forwards arg1 through arg4 to
call(Object, Object, Object, Object, Object). |
|
public Object |
callStatic(Class receiver, Object[] args)Forwards this site, the Class receiver, and args
to CallSiteArray.defaultCallStatic. |
|
public Object |
callStatic(Class receiver)Forwards to callStatic(Class, Object[]) with an empty argument array (CallSiteArray.NOPARAM). |
|
public Object |
callStatic(Class receiver, Object arg1)When array holds a different site at index, forwards receiver and arg1 to
CallSite.callStatic on that site. |
|
public Object |
callStatic(Class receiver, Object arg1, Object arg2)When array holds a different site at index, forwards receiver, arg1, and arg2 to
CallSite.callStatic on that site.
|
|
public Object |
callStatic(Class receiver, Object arg1, Object arg2, Object arg3)When array holds a different site at index, forwards receiver, arg1, arg2, and
arg3 to
CallSite.callStatic on that
site. |
|
public Object |
callStatic(Class receiver, Object arg1, Object arg2, Object arg3, Object arg4)When array holds a different site at index, forwards receiver and arg1 through arg4 to
CallSite.callStatic
on that site. |
|
protected final CallSite |
createGetPropertySite(Object receiver)Selects a property-read site for receiver. |
|
protected final CallSite |
createGroovyObjectGetPropertySite(Object receiver)Selects a property-read site for receiver. |
|
public CallSiteArray |
getArray()Returns the CallSiteArray that owns this site. |
|
public int |
getIndex()Returns this site's position in getArray(). |
|
public String |
getName()Returns the call or property name this site resolves. |
|
public Object |
getProperty(Object receiver)Throws UnsupportedOperationException. |
CallSiteArray that owns this site and stores it at index.
Position of this site in array.
Name of the call or property this site resolves.
Creates a site for name at index in array.
Creates a site that copies the name, index, and owning array from prev.
Returns the property-read site createGetPropertySite(Object)
selects for receiver.
Returns the property-read site
createGroovyObjectGetPropertySite(Object) selects for
receiver.
Forwards this site, receiver, and args to
CallSiteArray.defaultCall.
Forwards to call(Object, Object[]) with an empty argument array (CallSiteArray.NOPARAM).
When array holds a different site at index,
forwards receiver and arg1 to
CallSite.call on that site. Otherwise packs
arg1 into an array and forwards to call(Object, Object[]).
When array holds a different site at index,
forwards receiver, arg1, and arg2 to
CallSite.call on that site.
Otherwise packs those arguments and forwards to
call(Object, Object[]).
When array holds a different site at index,
forwards receiver, arg1, arg2, and
arg3 to CallSite.call
on that site. Otherwise packs those arguments and forwards to
call(Object, Object[]).
When array holds a different site at index,
forwards receiver and arg1 through arg4 to
CallSite.call on that
site. Otherwise packs those arguments and forwards to
call(Object, Object[]).
Forwards this site, the class to construct (receiver), and
args to
CallSiteArray.defaultCallConstructor.
Forwards to callConstructor(Object, Object[]) with an empty argument array (CallSiteArray.NOPARAM).
When array holds a different site at index,
forwards receiver and arg1 to
CallSite.callConstructor on that site.
Otherwise packs arg1 into an array and forwards to
callConstructor(Object, Object[]).
When array holds a different site at index,
forwards receiver, arg1, and arg2 to
CallSite.callConstructor on that site.
Otherwise packs those arguments and forwards to
callConstructor(Object, Object[]).
When array holds a different site at index,
forwards receiver, arg1, arg2, and
arg3 to
CallSite.callConstructor
on that site. Otherwise packs those arguments and forwards to
callConstructor(Object, Object[]).
When array holds a different site at index,
forwards receiver and arg1 through arg4 to
CallSite.callConstructor
on that site. Otherwise packs those arguments and forwards to
callConstructor(Object, Object[]).
Forwards this site, the GroovyObject receiver, and
args to
CallSiteArray.defaultCallCurrent.
Forwards to callCurrent(GroovyObject, Object[]) with an empty argument array (CallSiteArray.NOPARAM).
When array holds a different site at index,
forwards receiver and arg1 to
CallSite.callCurrent on that site.
Otherwise packs arg1 into an array and forwards to
callCurrent(GroovyObject, Object[]).
When array holds a different site at index,
forwards receiver, arg1, and arg2 to
CallSite.callCurrent on that
site. Otherwise packs those arguments and forwards to
callCurrent(GroovyObject, Object[]).
When array holds a different site at index,
forwards receiver, arg1, arg2, and
arg3 to
CallSite.callCurrent
on that site. Otherwise packs those arguments and forwards to
callCurrent(GroovyObject, Object[]).
When array holds a different site at index,
forwards receiver and arg1 through arg4 to
CallSite.callCurrent
on that site. Otherwise packs those arguments and forwards to
callCurrent(GroovyObject, Object[]).
Reads the property named by getName() from receiver
through the site acceptGetProperty(Object) returns.
Returns null when receiver is null;
otherwise forwards to callGetProperty(Object).
Reads the property named by getName(). A null
receiver is read from NullObject through
InvokerHelper.getProperty, and a
GroovyRuntimeException from that read is rethrown as the
throwable from ScriptBytecodeAdapter.unwrap.
Any other receiver is read through the site
acceptGroovyObjectGetProperty(Object) returns.
Returns null when receiver is null;
otherwise forwards to callGroovyObjectGetProperty(Object).
Returns null when receiver is null;
otherwise forwards args to call(Object, Object[]).
Returns null when receiver is null;
otherwise forwards to call(Object) with no arguments.
Returns null when receiver is null;
otherwise forwards arg1 to call(Object, Object).
Returns null when receiver is null;
otherwise forwards arg1 and arg2 to
call(Object, Object, Object).
Returns null when receiver is null;
otherwise forwards arg1, arg2, and arg3 to
call(Object, Object, Object, Object).
Returns null when receiver is null;
otherwise forwards arg1 through arg4 to
call(Object, Object, Object, Object, Object).
Forwards this site, the Class receiver, and args
to CallSiteArray.defaultCallStatic.
Forwards to callStatic(Class, Object[]) with an empty argument array (CallSiteArray.NOPARAM).
When array holds a different site at index,
forwards receiver and arg1 to
CallSite.callStatic on that site. Otherwise
packs arg1 into an array and forwards to
callStatic(Class, Object[]).
When array holds a different site at index,
forwards receiver, arg1, and arg2 to
CallSite.callStatic on that site.
Otherwise packs those arguments and forwards to
callStatic(Class, Object[]).
When array holds a different site at index,
forwards receiver, arg1, arg2, and
arg3 to
CallSite.callStatic on that
site. Otherwise packs those arguments and forwards to
callStatic(Class, Object[]).
When array holds a different site at index,
forwards receiver and arg1 through arg4 to
CallSite.callStatic
on that site. Otherwise packs those arguments and forwards to
callStatic(Class, Object[]).
Selects a property-read site for receiver. A null
receiver yields a NullCallSite. A GroovyObject is
passed to createGroovyObjectGetPropertySite(Object). A
Class yields a class metaclass site. Any other receiver
yields a POJO metaclass site.
Selects a property-read site for receiver. When
GroovyObjectOverrides.hasCustomGetProperty is
false and receiver, cast to GroovyObject,
has a MetaClassImpl metaclass, returns a POGO metaclass site.
Otherwise a Class receiver yields a class metaclass site, and
any other receiver yields a PogoGetPropertySite that calls
the object's own getProperty.
Returns the CallSiteArray that owns this site.
Returns this site's position in getArray().
Returns the call or property name this site resolves.
Throws UnsupportedOperationException. Property sites override this to read the property named by getName().
Copyright © 2003-2026 The Apache Software Foundation. All rights reserved.