JSFExtension class abstract
抽象 JSFExtension 扩展函数,为 js 引擎提供扩展功能. 单向链表结构,依次执行加载,后面的会覆盖前面的内容。请注意保证扩展内容的唯一性!
Constructors
- JSFExtension.new(JSFContext context, {JSFExtension? stub})
Properties
- context ↔ JSFContext
-
持有 JSContext 对象
getter/setter pair
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- stub ↔ JSFExtension?
-
下一个扩展
getter/setter pair
Methods
-
addInterface(
String funcName, dynamic func(dynamic args)) → bool - 代理函数,在扩展中添加 dart bridge 函数
-
chain(
JSFExtension other) → JSFExtension - 添加一个扩展到链表中
-
eval(
String script, {JSFValue? thiz, String? sourceURL, int startingLineNumber = 1}) → JSFValue - 代理函数,在扩展中执行 js 代码
-
load(
) → dynamic - 加载扩展
-
lookup(
Type extensionRunTimeType) → JSFExtension? - 检查是否存在指定类型的扩展
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
removeInterface(
String funcName) → bool - 代理函数,在扩展中移除 dart bridge 函数
-
toString(
) → String -
A string representation of this object.
inherited
-
unload(
) → dynamic - 卸载扩展
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited