VmValue class

运行时实例包装类

Inheritance

Constructors

VmValue.forFunction({String identifier = '___anonymousVmFunction___', bool? isIniter, bool? isStatic, bool? isGetter, bool? isSetter, List<VmHelper>? listArguments, List<VmHelper>? nameArguments, List<Map<VmKeys, dynamic>?>? initTree, Map<VmKeys, dynamic>? bodyTree, required dynamic staticListener(List? positionalArguments, Map<Symbol, dynamic>? namedArguments, VmClass staticScope, List<Map<VmKeys, dynamic>>? instanceFields, VmValue method), required dynamic instanceListener(List? positionalArguments, Map<Symbol, dynamic>? namedArguments, VmClass? staticScope, VmValue? instanceScope, VmValue method)})
创建函数值
factory
VmValue.forSubproxy({String identifier = '___anonymousVmSubproxy___', required VmLazyer initValue()})
创建子代理
factory
VmValue.forVariable({String identifier = '___anonymousVmVariable___', String? initType, dynamic initValue})
创建变量值
factory

Properties

functionAnonymousScopeList List<Map<String, VmObject>>?
作为内部定义的匿名函数来读取匿名作用域列表
no setter
hashCode int
The hash code for this object.
no setterinherited
identifier String
对象的标识符
finalinherited
internalInstancePropertyMapList List<Map<String, VmValue>>
作为内部定义类型的实例来获取实例字段集合列表,包括超类与子类定义的全部字段
no setter
metaData VmMetaData
元数据
final
metaType VmMetaType
元类型
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

bindAnonymousScopeList(List<Map<String, VmObject>>? scopeList) → void
作为内部定义的匿名函数来绑定匿名作用域列表,注意:匿名函数与其作用域列表一般是用于外部类库的回调
bindMemberScope() → void
作为内部定义类型的实例来绑定实例成员的相关作用域,注意:在调用前需要先调用bindStaticScope绑定静态作用域
bindStaticScope(VmClass staticScope) → void
作为内部定义类型的静态成员或实例来绑定静态作用域
getClass() VmClass
读取对象的对应包装类
override
getLogic() → dynamic
读取对象的逻辑处理值
override
getProperty(String propertyName) VmValue
作为内部定义类型的实例来读取字段
getValue() → dynamic
读取对象的原生数据值
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
prepareForConstructor(List? positionalArguments, Map<Symbol, dynamic>? namedArguments, VmClass vmclass) VmSuper
构建内部定义类型vmclass的实例的初始化值
prepareForInvocation(List? positionalArguments, Map<Symbol, dynamic>? namedArguments, VmValue? buildTarget) List<VmObject>
准备执行该函数所需的参数列表,buildTarget是被该函数初始化的构建目标实例
runFunction(List? positionalArguments, Map<Symbol, dynamic>? namedArguments) → dynamic
作为任意的函数来直接执行
setValue(dynamic value) → dynamic
设置对象的原生数据值 或 逻辑处理值
override
toJson() Map<String, dynamic>
转换为易读的JSON对象
override
toString() String
转换为易读的字符串描述
override

Operators

operator ==(Object other) bool
The equality operator.
inherited