All Bundles

FunctionType

Function type definition

Implements: Compare

Operations

New

Constructor

New(name:String, params:Set<ParameterType>, req_params:String[])
Parameters
NameTypeDescription
nameStringfunction name
paramsSet<ParameterType>parameters to add to JSON object
req_paramsString[]required parameters

Constructor

New(name:String, params:Set<ParameterType>)
Parameters
NameTypeDescription
nameStringfunction name
paramsSet<ParameterType>parameters to add to JSON object

Constructor

New(name:String, params:Set<ParameterType>, desc:String)
Parameters
NameTypeDescription
nameStringfunction name
paramsSet<ParameterType>parameters to add to JSON object
descStringdescription

Constructor

New(name:String, params:Set<ParameterType>, req_params:String[], desc:String)
Parameters
NameTypeDescription
nameStringfunction name
paramsSet<ParameterType>parameters to add to JSON object
req_paramsString[]required parameters
descStringdescription

Compare

Compares two objects

method : public : Compare(rhs:System.Compare) ~ Int
Parameters
NameTypeDescription
rhsComparecompare object

Return
TypeDescription
Int0 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
TypeDescription
Stringfunction description

GetName

Get the function name

method : public : GetName() ~ String
Return
TypeDescription
Stringfunction name

GetParams

Get function parameters

method : public : GetParams() ~ Set<ParameterType>
Return
TypeDescription
Set<ParameterType>function parameters

GetRequiredParams

Get the required function parameters

method : public : GetRequiredParams() ~ String[]
Return
TypeDescription
String[]required function parameters

HashID

Returns a hash ID for the given class

method : public : HashID() ~ Int
Return
TypeDescription
Inthash ID

ToJson

JSON element representation

method : public : ToJson() ~ JsonElement
Return
TypeDescription
JsonElementJSON element representation

ToString

JSON string representation

method : public : ToString() ~ String
Return
TypeDescription
StringJSON string representation