Package com.skillw.asahi.internal.script
Class NativeFunctionImpl
-
- All Implemented Interfaces:
-
com.skillw.asahi.api.script.linking.Invoker
public final class NativeFunctionImpl extends NativeFunction
Glom
-
-
Field Summary
Fields Modifier and Type Field Description private final Integer
paramCount
-
Constructor Summary
Constructors Constructor Description NativeFunctionImpl(String key, Array<String> paramNames, AsahiCompiledScript content, Function1<AsahiContext, Unit> initial)
-
Method Summary
Modifier and Type Method Description Integer
getParamCount()
Param count Object
invoke(AsahiContext context, Object params)
调用此函数 final static NativeFunction
create(String key, Array<String> paramNames, AsahiCompiledScript content, Function1<AsahiContext, Unit> initial)
final static NativeFunction
deserialize(String key, String content, String namespaces)
final static NativeFunction
deserialize(String key, Map<String, Object> map, String namespaces1)
-
-
Constructor Detail
-
NativeFunctionImpl
NativeFunctionImpl(String key, Array<String> paramNames, AsahiCompiledScript content, Function1<AsahiContext, Unit> initial)
-
-
Method Detail
-
getParamCount
Integer getParamCount()
Param count
-
invoke
Object invoke(AsahiContext context, Object params)
调用此函数
- Parameters:
context
- 上下文params
- 参数- Returns:
结果
-
create
final static NativeFunction create(String key, Array<String> paramNames, AsahiCompiledScript content, Function1<AsahiContext, Unit> initial)
-
deserialize
final static NativeFunction deserialize(String key, String content, String namespaces)
-
deserialize
final static NativeFunction deserialize(String key, Map<String, Object> map, String namespaces1)
-
-
-
-