public class PropertyDescriptor extends Object
| Constructor and Description |
|---|
PropertyDescriptor() |
| Modifier and Type | Method and Description |
|---|---|
Boolean |
getConfigurable()
True if the type of this property descriptor may be changed and if the property may be deleted
from the corresponding object.
|
Boolean |
getEnumerable()
True if this property shows up during enumeration of the properties on the corresponding
object.
|
RemoteObject |
getGet()
A function which serves as a getter for the property, or `undefined` if there is no getter
(accessor descriptors only).
|
Boolean |
getIsOwn()
True if the property is owned for the object.
|
String |
getName()
Property name or symbol description.
|
RemoteObject |
getSet()
A function which serves as a setter for the property, or `undefined` if there is no setter
(accessor descriptors only).
|
RemoteObject |
getSymbol()
Property symbol object, if the property is of the `symbol` type.
|
RemoteObject |
getValue()
The value associated with the property.
|
Boolean |
getWasThrown()
True if the result was thrown during the evaluation.
|
Boolean |
getWritable()
True if the value associated with the property may be changed (data descriptors only).
|
void |
setConfigurable(Boolean configurable)
True if the type of this property descriptor may be changed and if the property may be deleted
from the corresponding object.
|
void |
setEnumerable(Boolean enumerable)
True if this property shows up during enumeration of the properties on the corresponding
object.
|
void |
setGet(RemoteObject get)
A function which serves as a getter for the property, or `undefined` if there is no getter
(accessor descriptors only).
|
void |
setIsOwn(Boolean isOwn)
True if the property is owned for the object.
|
void |
setName(String name)
Property name or symbol description.
|
void |
setSet(RemoteObject set)
A function which serves as a setter for the property, or `undefined` if there is no setter
(accessor descriptors only).
|
void |
setSymbol(RemoteObject symbol)
Property symbol object, if the property is of the `symbol` type.
|
void |
setValue(RemoteObject value)
The value associated with the property.
|
void |
setWasThrown(Boolean wasThrown)
True if the result was thrown during the evaluation.
|
void |
setWritable(Boolean writable)
True if the value associated with the property may be changed (data descriptors only).
|
public String getName()
public void setName(String name)
public RemoteObject getValue()
public void setValue(RemoteObject value)
public Boolean getWritable()
public void setWritable(Boolean writable)
public RemoteObject getGet()
public void setGet(RemoteObject get)
public RemoteObject getSet()
public void setSet(RemoteObject set)
public Boolean getConfigurable()
public void setConfigurable(Boolean configurable)
public Boolean getEnumerable()
public void setEnumerable(Boolean enumerable)
public Boolean getWasThrown()
public void setWasThrown(Boolean wasThrown)
public Boolean getIsOwn()
public void setIsOwn(Boolean isOwn)
public RemoteObject getSymbol()
public void setSymbol(RemoteObject symbol)
Copyright © 2020. All rights reserved.