PyObjectWrapperImpl class
- Implemented types
- Annotations
-
- @sealed
Constructors
- PyObjectWrapperImpl.frbInternalDcoDecode(List wire)
- PyObjectWrapperImpl.frbInternalSseDecode(BigInt ptr, int externalSizeOnNative)
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- isDisposed → bool
-
Whether the underlying
Arcis disposed.no setterinherited - move ← bool?
-
no getterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
asBool(
) → bool -
尝试转换成 bool
override
-
asFloat(
) → double -
尝试转换成 f64
override
-
asInt(
) → PlatformInt64 -
尝试转换成 i64
override
-
asListString(
) → Future< List< String> > -
尝试将 List 转换为 Vec
override
-
asRepr(
) → String -
对应 Python: repr(self)
override
-
asStr(
) → String -
对应 Python: str(self)
override
-
call(
{required List< PyArgument> args}) → Future<PyObjectWrapper> -
调用对象 (如果它是函数或类)
Python: self(*args)
override
-
callMethod(
{required String methodName, required List< PyArgument> args}) → Future<PyObjectWrapper> -
调用对象的方法
Python: self.method_name(*args)
override
-
dispose(
) → void -
Dispose the underlying
Arc.inherited -
getattr(
{required String attrName}) → PyObjectWrapper -
获取属性,返回新的对象句柄
Python: self.attr_name
override
-
getItem(
{required PyArgument key}) → PyObjectWrapper -
字典/列表获取项
Python: self
keyoverride -
hasattr(
{required String attrName}) → bool -
检查属性是否存在
Python: hasattr(self, attr_name)
override
-
isCallable(
) → bool -
override
-
isEmpty(
) → bool -
检查是否为空
override
-
isNone(
) → bool -
override
-
len(
) → BigInt -
获取长度 (用于 List, Dict, Str, Set 等)
Python: len(self)
override
-
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
override
-
setItem(
{required PyArgument key, required PyArgument value}) → void -
字典/列表设置项
Python: self
key= valueoverride -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited