nuget server logo nuget api documents
↑

API Docs / REnv / SymbolExpression

SymbolExpression

Full name SMRUCC.Rsharp.Interpreter.ExecuteEngine.SymbolExpression Assembly REnv Members 9

An expression that will create a new symbol in R# environment

00 Remarks

the base type of

  1. DeclareNewSymbol
  2. DeclareLambdaFunction
  3. DeclareNewFunction
  4. UsingClosure

01 Syntax

SMRUCC.Rsharp.Interpreter.ExecuteEngine.SymbolExpression

02 Methods

NameOverloadsSummary
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

NameOverloadsSummary
attributes 1 the annotation data from the attribute annotation, example as: R [@name "value"] [@name1 "value2"] const symbol = ...

04 Members

method GetSymbolName #
GetSymbolName

The symbol name of current symbol object

method hasAttribute #
hasAttribute(String)

does a specific attribute exists in current symbol?

Parameters
NameTypeDescription
nameString

-

method GetAttributeNames #
GetAttributeNames

Get all attribute name that tagged with current symbol object.

method GetAttributeValue #
GetAttributeValue(String)

Get values that associated with the current symbol object

Parameters
NameTypeDescription
nameString

the attribute name string for get the value

Returns

returns empty string collection if the attribute name is not exists

method AddCustomAttributes #
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
NameTypeDescription
attrsIEnumerable(Of NamedValue(Of String()))

-

method SetAttributes #
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
NameTypeDescription
attrsDictionary(Of String, String())

-

field attributes #
attributes

the annotation data from the attribute annotation, example as:

 [@name "value"]
 [@name1 "value2"]
 const symbol = ...
method GetAttributes #
GetAttributes()
method AddCustomAttribute #
AddCustomAttribute(String, String())