PyObjectWrapper class abstract
- Implementers
Constructors
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- isDisposed → bool
-
Whether the underlying
Arcis disposed.no setterinherited - runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
asBool(
) → bool - 尝试转换成 bool
-
asFloat(
) → double - 尝试转换成 f64
-
asInt(
) → PlatformInt64 - 尝试转换成 i64
-
asListString(
) → Future< List< String> > - 尝试将 List 转换为 Vec
-
asRepr(
) → String - 对应 Python: repr(self)
-
asStr(
) → String - 对应 Python: str(self)
-
call(
{required List< PyArgument> args}) → Future<PyObjectWrapper> - 调用对象 (如果它是函数或类) Python: self(*args)
-
callMethod(
{required String methodName, required List< PyArgument> args}) → Future<PyObjectWrapper> - 调用对象的方法 Python: self.method_name(*args)
-
dispose(
) → void -
Dispose the underlying
Arc.inherited -
getattr(
{required String attrName}) → PyObjectWrapper - 获取属性,返回新的对象句柄 Python: self.attr_name
-
getItem(
{required PyArgument key}) → PyObjectWrapper -
字典/列表获取项
Python: self
key -
hasattr(
{required String attrName}) → bool - 检查属性是否存在 Python: hasattr(self, attr_name)
-
isCallable(
) → bool -
isEmpty(
) → bool - 检查是否为空
-
isNone(
) → bool -
len(
) → BigInt - 获取长度 (用于 List, Dict, Str, Set 等) Python: len(self)
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
setattr(
{required String attrName, required PyArgument value}) → void - 设置属性 Python: self.attr_name = value
-
setItem(
{required PyArgument key, required PyArgument value}) → void -
字典/列表设置项
Python: self
key= value -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited