Documentation
¶
Index ¶
- func Add(a, b reflect.Value) (interface{}, error)
- func ConvertDecimalToType(newValue reflect.Value, toKind reflect.Type) (reflect.Value, error)
- func Div(a, b reflect.Value) (interface{}, error)
- func GetFunctionName(i reflect.Value) string
- func GetRawTypeValue(rs []reflect.Value) (reflect.Value, error)
- func GetStructAttributeValue(obj reflect.Value, fieldName string) (reflect.Value, error)
- func GetWantedValue(newValue reflect.Value, toKind reflect.Type) (reflect.Value, error)
- func InvokeFunction(obj reflect.Value, methodName string, parameters []reflect.Value) (reflect.Value, error)
- func IsNil(v interface{}) bool
- func MakeDecimalByType(val reflect.Value) (decimal.Decimal, string, error)
- func Mul(a, b reflect.Value) (interface{}, error)
- func ParamsTypeChange(f reflect.Value, params []reflect.Value) []reflect.Value
- func SetAttributeValue(obj reflect.Value, fieldName string, value reflect.Value) error
- func SetSingleValue(obj reflect.Value, fieldName string, value reflect.Value) error
- func Sub(a, b reflect.Value) (interface{}, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ConvertDecimalToType ¶ added in v1.6.0
newValue 入参类型 toKind 期望类型
func GetFunctionName ¶ added in v1.6.5
func GetRawTypeValue ¶
* todo 多返回值修改如下函数 if want to support multi return ,change this method implements
func GetStructAttributeValue ¶
func GetWantedValue ¶
newValue: 真实入参类型 toKind: 期望的入参类型
func InvokeFunction ¶
func MakeDecimalByType ¶ added in v1.6.0
func ParamsTypeChange ¶
ParamsTypeChange 自定义算子函数入参的数据类型转换 @param f是定义的注入函数反射值,可以直接调用 @param params 是入参
func SetAttributeValue ¶
SetAttributeValue set field value value 就是右表达式的值,可能是decimal类型
func SetSingleValue ¶
SetSingleValue 单值设置 @param obj是变量声明时候的默认类型 @param value是规则表达式中赋值的类型(会被转换成decimal)
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.