An expression that will create a new symbol in R# environment
SymbolExpression
00 Remarks
the base type of
01 Syntax
SMRUCC.Rsharp.Interpreter.ExecuteEngine.SymbolExpression
02 Methods
| Name | Overloads | Summary |
|---|---|---|
| GetSymbolName | 1 | The symbol name of current symbol object |
| hasAttribute | 1 | does a specific attribute exists in current symbol? |
| GetAttributeNames | 1 | Get all attribute name that tagged with current symbol object. |
| GetAttributeValue | 1 | Get values that associated with the current symbol object |
| AddCustomAttributes | 1 | Add custom attribute data into current symbol object |
| SetAttributes | 1 | Just set value, this function use for the package parser |
| GetAttributes | 1 | |
| AddCustomAttribute | 1 |
03 Fields
| Name | Overloads | Summary |
|---|---|---|
| attributes | 1 | the annotation data from the attribute annotation, example as: R [@name "value"] [@name1 "value2"] const symbol = ... |
04 Members
GetSymbolName
The symbol name of current symbol object
hasAttribute(
String)does a specific attribute exists in current symbol?
Parameters
| Name | Type | Description |
|---|---|---|
name | String | - |
GetAttributeNames
Get all attribute name that tagged with current symbol object.
GetAttributeValue(
String)Get values that associated with the current symbol object
Parameters
| Name | Type | Description |
|---|---|---|
name | String | the attribute name string for get the value |
Returns
returns empty string collection if the attribute name is not exists
AddCustomAttributes(
IEnumerable(Of NamedValue(Of String())))Add custom attribute data into current symbol object
Remarks
Call this method at script parser or expression parser code
Parameters
| Name | Type | Description |
|---|---|---|
attrs | IEnumerable(Of NamedValue(Of String())) | - |
SetAttributes(
Dictionary(Of String, String()))Just set value, this function use for the package parser
Remarks
use the SymbolExpression.AddCustomAttribute() if want to add a specific single attribute data
Parameters
| Name | Type | Description |
|---|---|---|
attrs | Dictionary(Of String, String()) | - |
attributes
the annotation data from the attribute annotation, example as:
[@name "value"]
[@name1 "value2"]
const symbol = ...GetAttributes()
AddCustomAttribute(
String, String())