public class BidiJSHandle extends JSHandle
| 构造器和说明 |
|---|
BidiJSHandle(RemoteValue value,
BidiRealm realm) |
| 限定符和类型 | 方法和说明 |
|---|---|
ElementHandle |
asElement()
如果句柄是 ElementHandle 的实例,则为 null 或句柄本身。
|
void |
dispose()
释放句柄引用的对象以进行垃圾回收。
|
boolean |
disposed() |
static BidiJSHandle |
from(RemoteValue value,
BidiRealm realm) |
String |
id()
当前对象的 Protocol.Runtime.RemoteObject 的 id。
|
boolean |
isPrimitiveValue() |
Object |
jsonValue()
表示引用对象的可序列化部分的普通对象
|
Realm |
realm() |
RemoteObject |
remoteObject()
提供对支持当前对象的 Protocol.Runtime.RemoteObject 的访问。
|
RemoteValue |
remoteValue() |
String |
toString()
返回 JSHandle 的字符串表示形式。
|
evaluate, evaluate, evaluateHandle, evaluateHandle, getProperties, getPropertypublic BidiJSHandle(RemoteValue value, BidiRealm realm)
public static BidiJSHandle from(RemoteValue value, BidiRealm realm)
public Object jsonValue() throws com.fasterxml.jackson.core.JsonProcessingException, EvaluateException
JSHandlejsonValue 在类中 JSHandlecom.fasterxml.jackson.core.JsonProcessingException - 如果对象由于循环而无法序列化,则抛出该异常。EvaluateExceptionpublic ElementHandle asElement()
JSHandlepublic boolean isPrimitiveValue()
public RemoteValue remoteValue()
public RemoteObject remoteObject()
JSHandleremoteObject 在类中 JSHandleCopyright © 2020–2025. All rights reserved.