FunctionType
Function type definition
Operations
Compare
Compares two objects
method : public : Compare(rhs:System.Compare) ~ Int
Parameters
Name | Type | Description |
---|---|---|
rhs | Compare | compare object |
Return
Type | Description |
---|---|
Int | 0 if equal, -1 if right-hand side i greater, 1 if left-hand side is greater |
GetDesc
Get the function description
method : public : GetDesc() ~ String
Return
Type | Description |
---|---|
String | function description |
GetName
Get the function name
method : public : GetName() ~ String
Return
Type | Description |
---|---|
String | function name |
GetParams
Get function parameters
method : public : GetParams() ~ Map<String,ParameterType>
Return
Type | Description |
---|---|
Map<String,ParameterType> | function parameters |
GetRequiredParams
Get the required function parameters
method : public : GetRequiredParams() ~ String[]
Return
Type | Description |
---|---|
String | required function parameters |
HashID
Returns a hash ID for the given class
method : public : HashID() ~ Int
Return
Type | Description |
---|---|
Int | hash ID |
New
Constructor
New(name:String, params:Map<String,ParameterType>, req_params:String[])
Parameters
Name | Type | Description |
---|---|---|
name | String | function name |
params | Map<String,ParameterType> | parameters to add to JSON object |
req_params | String | required parameters |
New
Constructor
New(name:String, params:Map<String,ParameterType>)
Parameters
Name | Type | Description |
---|---|---|
name | String | function name |
params | Map<String,ParameterType> | parameters to add to JSON object |
New
Constructor
New(name:String, params:Map<String,ParameterType>, desc:String)
Parameters
Name | Type | Description |
---|---|---|
name | String | function name |
params | Map<String,ParameterType> | parameters to add to JSON object |
desc | String | description |
New
Constructor
New(name:String, params:Map<String,ParameterType>, req_params:String[], desc:String)
Parameters
Name | Type | Description |
---|---|---|
name | String | function name |
params | Map<String,ParameterType> | parameters to add to JSON object |
req_params | String | required parameters |
desc | String | description |
ToJson
JSON element representation
method : public : ToJson() ~ JsonElement
Return
Type | Description |
---|---|
JsonElement | JSON element representation |
ToString
JSON string representation
method : public : ToString() ~ String
Return
Type | Description |
---|---|
String | JSON string representation |