The variable model in R# language
Symbol
01 Syntax
SMRUCC.Rsharp.Runtime.Components.Symbol
02 Methods
| Name | Overloads | Summary |
|---|---|---|
| .ctor | 2 | NULL |
| SetValue | 1 | |
| setMutable | 1 | set current symbol its lock binding status |
| TryGetValueType | 1 | |
| ToString | 1 | |
| GetValueViewString | 1 | |
| ToVector | 1 |
03 Properties
| Name | Overloads | Summary |
|---|---|---|
| name | 1 | the variable name |
| stacktrace | 1 | which runtime stack that this variable symbol is created? |
| value | 1 | 变量值对于基础类型而言,都是以数组的形式存储的 非基础类型则为其值本身 |
| constraint | 1 | 当前的这个变量被约束的类型 |
| typeId | 1 | RType.fullName, key for GlobalEnvironment.types |
| typeof | 1 | Get the .net clr type of the current object Symbol.value. |
| typeCode | 1 | 当前的这个变量的值所具有的类型代码 |
| length | 1 | The vector length |
| isCallable | 1 | 当前的这个符号值是否是一个可以被调用的函数对象? |
| constraintValid | 1 | 当前的变量值的类型代码是否满足类型约束条件 |
04 Members
#ctor(TypeCodes)
NULL
Parameters
| Name | Type | Description |
|---|---|---|
constraint | TypeCodes | - |
#ctor(
Object)just wrap the clr runtime value
Parameters
| Name | Type | Description |
|---|---|---|
wrap_val | Object | - |
Parameters
| Name | Type | Description |
|---|---|---|
x | Object | - |
env | Environment | - |
overrides | Boolean | set this parameter to value TRUE to apply for the script symbol imports |
setMutable(
Boolean)set current symbol its lock binding status
Parameters
| Name | Type | Description |
|---|---|---|
readonly | Boolean |
|
name
the variable name
stacktrace
which runtime stack that this variable symbol is created?
value
变量值对于基础类型而言,都是以数组的形式存储的 非基础类型则为其值本身
constraint
当前的这个变量被约束的类型
typeId
RType.fullName, key for GlobalEnvironment.types
typeof
Get the .net clr type of the current object Symbol.value.
typeCode
当前的这个变量的值所具有的类型代码
length
The vector length
isCallable
当前的这个符号值是否是一个可以被调用的函数对象?
constraintValid
当前的变量值的类型代码是否满足类型约束条件
TryGetValueType()
ToString()
GetValueViewString(Symbol)
ToVector()