the abstract model of these:
RFunction
01 Syntax
SMRUCC.Rsharp.Runtime.Components.Interface.RFunction
02 Methods
| Name | Overloads | Summary |
|---|---|---|
| getReturns | 1 | 获取这个函数可能所返回的类型,如果没有额外的信息,这个属性一般是any类型 |
| getArguments | 1 | get the parameter list of current function |
| Invoke | 2 | 执行当前的这个函数对象然后获取得到结果值 |
03 Properties
| Name | Overloads | Summary |
|---|---|---|
| name | 1 | 函数名 |
04 Members
getReturns(Environment)
获取这个函数可能所返回的类型,如果没有额外的信息,这个属性一般是any类型
getArguments
get the parameter list of current function
Returns
please note that:
- if the value of the item is nothing, then it means the parameter is required!
- if the value of the item is a literal expression of NULL, then it means the parameter is optional and the default value is NULL
Invoke(Environment, InvokeParameter())
执行当前的这个函数对象然后获取得到结果值
Parameters
| Name | Type | Description |
|---|---|---|
envir | Environment | - |
arguments | InvokeParameter() | - |
Invoke(
Object(), Environment)直接传入参数进行函数的调用,这个接口一般是直接用于生成lambda函数所使用的
Parameters
| Name | Type | Description |
|---|---|---|
arguments | Object() | - |
env | Environment | - |
name
函数名