Set variable or tuple
ValueAssignExpression
00 Remarks
supports tuple disconstruct syntax for assign value to multiuple symbols.
01 Syntax
SMRUCC.Rsharp.Interpreter.ExecuteEngine.ExpressionSymbols.Operators.ValueAssignExpression
02 Methods
| Name | Overloads | Summary |
|---|---|---|
| EvaluateValue | 1 | evaluate the ValueAssignExpression.value expression as the clr runtime value. |
| DoValueAssign | 1 | set the given value to ValueAssignExpression.targetSymbols. |
| setFromObjectList | 1 | 使用左边的变量符号的名称从右边的列表之中按名称取出值,不存在的名字则赋值为空值 |
| GetSymbol | 1 | handling get symbol from the given expression types: 1. |
| Evaluate | 1 | |
| ToString | 1 | |
| setFromDataFrame | 1 |
03 Properties
| Name | Overloads | Summary |
|---|---|---|
| targetSymbols | 1 | 可能是对tuple做赋值 所以应该是多个变量名称 |
| value | 1 | the value data expression for assigned to the ValueAssignExpression.targetSymbols |
| type | 1 | |
| expressionName | 1 | |
| isByRef | 1 | |
| symbolSize | 1 |
04 Members
EvaluateValue(Environment)
evaluate the ValueAssignExpression.value expression as the clr runtime value.
Parameters
| Name | Type | Description |
|---|---|---|
env | Environment | - |
DoValueAssign(Environment,
Object)set the given value to ValueAssignExpression.targetSymbols.
Parameters
| Name | Type | Description |
|---|---|---|
envir | Environment | - |
value | Object | - |
使用左边的变量符号的名称从右边的列表之中按名称取出值,不存在的名字则赋值为空值
Parameters
| Name | Type | Description |
|---|---|---|
envir | Environment | - |
targetSymbols | Expression() | - |
isByRef | Boolean | - |
value | Object | - |
GetSymbol(Expression)
handling get symbol from the given expression types:
- Literal: get string literal value as symbol text
- SymbolReference: get symbol name as the symbol text
Parameters
| Name | Type | Description |
|---|---|---|
symbolName | Expression | - |
Returns
this function returns nothing if the given expression type is not implements for get symbol text
targetSymbols
可能是对tuple做赋值 所以应该是多个变量名称
value
the value data expression for assigned to the ValueAssignExpression.targetSymbols
type
expressionName
isByRef
symbolSize
Evaluate(Environment)
ToString()