Class PropertyDescriptor


  • public class PropertyDescriptor
    extends java.lang.Object
    Object property descriptor.
    • Constructor Summary

      Constructors 
      Constructor Description
      PropertyDescriptor​(java.lang.String name, java.util.Optional<RemoteObject> value, java.util.Optional<java.lang.Boolean> writable, java.util.Optional<RemoteObject> get, java.util.Optional<RemoteObject> set, java.lang.Boolean configurable, java.lang.Boolean enumerable, java.util.Optional<java.lang.Boolean> wasThrown, java.util.Optional<java.lang.Boolean> isOwn, java.util.Optional<RemoteObject> symbol)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.Boolean getConfigurable()
      True if the type of this property descriptor may be changed and if the property may be deleted from the corresponding object.
      java.lang.Boolean getEnumerable()
      True if this property shows up during enumeration of the properties on the corresponding object.
      java.util.Optional<RemoteObject> getGet()
      A function which serves as a getter for the property, or `undefined` if there is no getter (accessor descriptors only).
      java.util.Optional<java.lang.Boolean> getIsOwn()
      True if the property is owned for the object.
      java.lang.String getName()
      Property name or symbol description.
      java.util.Optional<RemoteObject> getSet()
      A function which serves as a setter for the property, or `undefined` if there is no setter (accessor descriptors only).
      java.util.Optional<RemoteObject> getSymbol()
      Property symbol object, if the property is of the `symbol` type.
      java.util.Optional<RemoteObject> getValue()
      The value associated with the property.
      java.util.Optional<java.lang.Boolean> getWasThrown()
      True if the result was thrown during the evaluation.
      java.util.Optional<java.lang.Boolean> getWritable()
      True if the value associated with the property may be changed (data descriptors only).
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • PropertyDescriptor

        public PropertyDescriptor​(java.lang.String name,
                                  java.util.Optional<RemoteObject> value,
                                  java.util.Optional<java.lang.Boolean> writable,
                                  java.util.Optional<RemoteObject> get,
                                  java.util.Optional<RemoteObject> set,
                                  java.lang.Boolean configurable,
                                  java.lang.Boolean enumerable,
                                  java.util.Optional<java.lang.Boolean> wasThrown,
                                  java.util.Optional<java.lang.Boolean> isOwn,
                                  java.util.Optional<RemoteObject> symbol)
    • Method Detail

      • getName

        public java.lang.String getName()
        Property name or symbol description.
      • getValue

        public java.util.Optional<RemoteObject> getValue()
        The value associated with the property.
      • getWritable

        public java.util.Optional<java.lang.Boolean> getWritable()
        True if the value associated with the property may be changed (data descriptors only).
      • getGet

        public java.util.Optional<RemoteObject> getGet()
        A function which serves as a getter for the property, or `undefined` if there is no getter (accessor descriptors only).
      • getSet

        public java.util.Optional<RemoteObject> getSet()
        A function which serves as a setter for the property, or `undefined` if there is no setter (accessor descriptors only).
      • getConfigurable

        public java.lang.Boolean getConfigurable()
        True if the type of this property descriptor may be changed and if the property may be deleted from the corresponding object.
      • getEnumerable

        public java.lang.Boolean getEnumerable()
        True if this property shows up during enumeration of the properties on the corresponding object.
      • getWasThrown

        public java.util.Optional<java.lang.Boolean> getWasThrown()
        True if the result was thrown during the evaluation.
      • getIsOwn

        public java.util.Optional<java.lang.Boolean> getIsOwn()
        True if the property is owned for the object.
      • getSymbol

        public java.util.Optional<RemoteObject> getSymbol()
        Property symbol object, if the property is of the `symbol` type.