public interface CallSite
Classic (non-invokedynamic) call site.
Prefer invokedynamic call sites for new code. Planned for deprecation/removal in a future Groovy version.
| Type Params | Return Type | Name and description |
|---|---|---|
|
public Object |
call(Object receiver, Object[] args)Invokes the named method on receiver with args. |
|
public Object |
call(Object receiver)Invokes the named method on receiver with no arguments. |
|
public Object |
call(Object receiver, Object arg1)Invokes the named method on receiver with one argument. |
|
public Object |
call(Object receiver, Object arg1, Object arg2)Invokes the named method on receiver with two arguments. |
|
public Object |
call(Object receiver, Object arg1, Object arg2, Object arg3)Invokes the named method on receiver with three arguments. |
|
public Object |
call(Object receiver, Object arg1, Object arg2, Object arg3, Object arg4)Invokes the named method on receiver with four arguments. |
|
public Object |
callConstructor(Object receiver, Object[] args)Invokes a constructor selected for receiver with args. |
|
public Object |
callConstructor(Object receiver)Invokes a constructor selected for receiver with no arguments. |
|
public Object |
callConstructor(Object receiver, Object arg1)Invokes a constructor selected for receiver with one argument. |
|
public Object |
callConstructor(Object receiver, Object arg1, Object arg2)Invokes a constructor selected for receiver with two arguments. |
|
public Object |
callConstructor(Object receiver, Object arg1, Object arg2, Object arg3)Invokes a constructor selected for receiver with three arguments. |
|
public Object |
callConstructor(Object receiver, Object arg1, Object arg2, Object arg3, Object arg4)Invokes a constructor selected for receiver with four arguments. |
|
public Object |
callCurrent(GroovyObject receiver, Object[] args)Invokes the named method on the current object with args. |
|
public Object |
callCurrent(GroovyObject receiver)Invokes the named method on the current object with no arguments. |
|
public Object |
callCurrent(GroovyObject receiver, Object arg1)Invokes the named method on the current object with one argument. |
|
public Object |
callCurrent(GroovyObject receiver, Object arg1, Object arg2)Invokes the named method on the current object with two arguments. |
|
public Object |
callCurrent(GroovyObject receiver, Object arg1, Object arg2, Object arg3)Invokes the named method on the current object with three arguments. |
|
public Object |
callCurrent(GroovyObject receiver, Object arg1, Object arg2, Object arg3, Object arg4)Invokes the named method on the current object with four arguments. |
|
public Object |
callGetProperty(Object receiver)Reads the named property of receiver. |
|
public Object |
callGetPropertySafe(Object receiver)Reads the named property of receiver, returning null when
receiver is null. |
|
public Object |
callGroovyObjectGetProperty(Object receiver)Reads the named property through GroovyObject.getProperty. |
|
public Object |
callGroovyObjectGetPropertySafe(Object receiver)Reads the named property through GroovyObject.getProperty, returning null when receiver is null. |
|
public Object |
callSafe(Object receiver, Object[] args)Invokes the named method on receiver with args, returning
null when receiver is null. |
|
public Object |
callSafe(Object receiver)Invokes the named method on receiver with no arguments, returning
null when receiver is null. |
|
public Object |
callSafe(Object receiver, Object arg1)Invokes the named method on receiver with one argument, returning
null when receiver is null. |
|
public Object |
callSafe(Object receiver, Object arg1, Object arg2)Invokes the named method on receiver with two arguments, returning
null when receiver is null. |
|
public Object |
callSafe(Object receiver, Object arg1, Object arg2, Object arg3)Invokes the named method on receiver with three arguments, returning
null when receiver is null. |
|
public Object |
callSafe(Object receiver, Object arg1, Object arg2, Object arg3, Object arg4)Invokes the named method on receiver with four arguments, returning
null when receiver is null. |
|
public Object |
callStatic(Class receiver, Object[] args)Invokes the named static method on receiver with args. |
|
public Object |
callStatic(Class receiver)Invokes the named static method on receiver with no arguments. |
|
public Object |
callStatic(Class receiver, Object arg1)Invokes the named static method on receiver with one argument. |
|
public Object |
callStatic(Class receiver, Object arg1, Object arg2)Invokes the named static method on receiver with two arguments. |
|
public Object |
callStatic(Class receiver, Object arg1, Object arg2, Object arg3)Invokes the named static method on receiver with three arguments. |
|
public Object |
callStatic(Class receiver, Object arg1, Object arg2, Object arg3, Object arg4)Invokes the named static method on receiver with four arguments. |
|
public CallSiteArray |
getArray()Returns the array that owns this site. |
|
public int |
getIndex()Returns this site's index in getArray(). |
|
public String |
getName()Returns the method or property name this site calls. |
|
public Object |
getProperty(Object receiver)Reads the named property of receiver. |
Invokes the named method on receiver with args.
receiver - the target of the callargs - the arguments, in order Invokes the named method on receiver with no arguments.
receiver - the target of the call Invokes the named method on receiver with one argument.
receiver - the target of the callarg1 - the only argument Invokes the named method on receiver with two arguments.
receiver - the target of the callarg1 - the first argumentarg2 - the second argument Invokes the named method on receiver with three arguments.
receiver - the target of the callarg1 - the first argumentarg2 - the second argumentarg3 - the third argument Invokes the named method on receiver with four arguments.
receiver - the target of the callarg1 - the first argumentarg2 - the second argumentarg3 - the third argumentarg4 - the fourth argument Invokes a constructor selected for receiver with args.
receiver - the constructor's owner, as supplied by the callerargs - the constructor arguments, in order Invokes a constructor selected for receiver with no arguments.
receiver - the constructor's owner, as supplied by the caller Invokes a constructor selected for receiver with one argument.
receiver - the constructor's owner, as supplied by the callerarg1 - the only constructor argument Invokes a constructor selected for receiver with two arguments.
receiver - the constructor's owner, as supplied by the callerarg1 - the first constructor argumentarg2 - the second constructor argument Invokes a constructor selected for receiver with three arguments.
receiver - the constructor's owner, as supplied by the callerarg1 - the first constructor argumentarg2 - the second constructor argumentarg3 - the third constructor argument Invokes a constructor selected for receiver with four arguments.
receiver - the constructor's owner, as supplied by the callerarg1 - the first constructor argumentarg2 - the second constructor argumentarg3 - the third constructor argumentarg4 - the fourth constructor argument Invokes the named method on the current object with args.
receiver - the current Groovy objectargs - the arguments, in orderInvokes the named method on the current object with no arguments.
receiver - the current Groovy objectInvokes the named method on the current object with one argument.
receiver - the current Groovy objectarg1 - the only argumentInvokes the named method on the current object with two arguments.
receiver - the current Groovy objectarg1 - the first argumentarg2 - the second argumentInvokes the named method on the current object with three arguments.
receiver - the current Groovy objectarg1 - the first argumentarg2 - the second argumentarg3 - the third argumentInvokes the named method on the current object with four arguments.
receiver - the current Groovy objectarg1 - the first argumentarg2 - the second argumentarg3 - the third argumentarg4 - the fourth argument Reads the named property of receiver.
receiver - the object whose property is read Reads the named property of receiver, returning null when
receiver is null.
receiver - the object whose property is read; may be nullreceiver is nullReads the named property through GroovyObject.getProperty.
receiver - the Groovy object whose property is read Reads the named property through GroovyObject.getProperty,
returning null when receiver is null.
receiver - the Groovy object whose property is read; may be nullreceiver is null Invokes the named method on receiver with args, returning
null when receiver is null.
receiver - the target of the call; may be nullargs - the arguments, in orderreceiver is null Invokes the named method on receiver with no arguments, returning
null when receiver is null.
receiver - the target of the call; may be nullreceiver is null Invokes the named method on receiver with one argument, returning
null when receiver is null.
receiver - the target of the call; may be nullarg1 - the only argumentreceiver is null Invokes the named method on receiver with two arguments, returning
null when receiver is null.
receiver - the target of the call; may be nullarg1 - the first argumentarg2 - the second argumentreceiver is null Invokes the named method on receiver with three arguments, returning
null when receiver is null.
receiver - the target of the call; may be nullarg1 - the first argumentarg2 - the second argumentarg3 - the third argumentreceiver is null Invokes the named method on receiver with four arguments, returning
null when receiver is null.
receiver - the target of the call; may be nullarg1 - the first argumentarg2 - the second argumentarg3 - the third argumentarg4 - the fourth argumentreceiver is null Invokes the named static method on receiver with args.
receiver - the class that declares the methodargs - the arguments, in order Invokes the named static method on receiver with no arguments.
receiver - the class that declares the method Invokes the named static method on receiver with one argument.
receiver - the class that declares the methodarg1 - the only argument Invokes the named static method on receiver with two arguments.
receiver - the class that declares the methodarg1 - the first argumentarg2 - the second argument Invokes the named static method on receiver with three arguments.
receiver - the class that declares the methodarg1 - the first argumentarg2 - the second argumentarg3 - the third argument Invokes the named static method on receiver with four arguments.
receiver - the class that declares the methodarg1 - the first argumentarg2 - the second argumentarg3 - the third argumentarg4 - the fourth argumentReturns the array that owns this site.
Returns this site's index in getArray().
Returns the method or property name this site calls.