S4 type system
s4Reflector
01 Syntax
SMRUCC.Rsharp.Runtime.Internal.Object.baseOp.s4Reflector
02 Methods
| Name | Overloads | Summary |
|---|---|---|
| .ctor | 1 | |
| getByName | 3 | |
| setByName | 2 | set property value by name |
| MakeReflection | 1 | |
| existsName | 1 | |
| getNames | 1 |
03 Properties
| Name | Overloads | Summary |
|---|---|---|
| elementType | 1 | R# type wrapper of the type data for target |
| s4class | 1 |
04 Members
#ctor
Remarks
constructor for the runtime s4object
getByName(
String)Get property value/method reference by name
Remarks
this method is strict in s4object, this function will throw error if not found by name
Parameters
| Name | Type | Description |
|---|---|---|
name | String | - |
Returns
Function will returns nothing when target not found, but property value read getter result may be nothing, please check member exists or not by method s4Reflector.existsName() if the result value is nothing of this function.
getByName(
String())Get properties value collection by a given name list
Parameters
| Name | Type | Description |
|---|---|---|
names | String() | - |
set property value by name
Parameters
| Name | Type | Description |
|---|---|---|
name | String | - |
value | Object | - |
envir | Environment | - |
set properties values by given name list
Parameters
| Name | Type | Description |
|---|---|---|
names | String() | - |
value | Array | - |
envir | Environment | - |
elementType
R# type wrapper of the type data for target
s4class
MakeReflection(
Object, Dictionary(Of String, PropertyInfo), Dictionary(Of String, RMethodInfo))getByName(
String, Environment)existsName(
String)getNames()