Class RemoteObject


  • public class RemoteObject
    extends java.lang.Object
    Mirror object referencing original JavaScript object.
    • Constructor Detail

      • RemoteObject

        public RemoteObject​(RemoteObject.Type type,
                            java.util.Optional<RemoteObject.Subtype> subtype,
                            java.util.Optional<java.lang.String> className,
                            java.util.Optional<java.util.Map<java.lang.String,​java.lang.Object>> value,
                            java.util.Optional<UnserializableValue> unserializableValue,
                            java.util.Optional<java.lang.String> description,
                            java.util.Optional<RemoteObjectId> objectId,
                            java.util.Optional<ObjectPreview> preview,
                            java.util.Optional<CustomPreview> customPreview)
    • Method Detail

      • getSubtype

        public java.util.Optional<RemoteObject.Subtype> getSubtype()
        Object subtype hint. Specified for `object` or `wasm` type values only.
      • getClassName

        public java.util.Optional<java.lang.String> getClassName()
        Object class (constructor) name. Specified for `object` type values only.
      • getValue

        public java.util.Optional<java.util.Map<java.lang.String,​java.lang.Object>> getValue()
        Remote object value in case of primitive values or JSON values (if it was requested).
      • getUnserializableValue

        public java.util.Optional<UnserializableValue> getUnserializableValue()
        Primitive value which can not be JSON-stringified does not have `value`, but gets this property.
      • getDescription

        public java.util.Optional<java.lang.String> getDescription()
        String representation of the object.
      • getObjectId

        public java.util.Optional<RemoteObjectId> getObjectId()
        Unique object identifier (for non-primitive values).
      • getPreview

        @Beta
        public java.util.Optional<ObjectPreview> getPreview()
        Preview containing abbreviated property values. Specified for `object` type values only.
      • getCustomPreview

        @Beta
        public java.util.Optional<CustomPreview> getCustomPreview()