Package com.oracle.truffle.api.object
package com.oracle.truffle.api.object
Dynamic object storage model.
- Since:
- 0.8 or older
-
ClassDescriptionDeprecated.Deprecated.Represents a dynamic object, members of which can be dynamically added and removed at run time.Checks if this object contains a property with the given key.Copies all properties of a DynamicObject to another, preserving property flags.Using this annotation, subclasses can define additional dynamic fields to be used by the object layout.Gets the language-specific dynamic type identifier currently associated with this object.Gets a snapshot of the object's property keys, in insertion order.Gets the value of a property or returns a default value if no such property exists.Gets a snapshot of the object's properties, in insertion order.Gets the property flags associated with the requested property key.Gets a property descriptor for the requested property key or
nullif no such property exists.Gets the language-specific object shape flags.Checks whether this object is marked as shared.Marks this object as shared.Adds or sets multiple properties in bulk.Sets the value of an existing property or adds a new property if no such property exists.Sets the value of an existing property or adds a new property if no such property exists.Removes the property with the given key from the object.Empties and resets the object to the given root shape.Sets the language-specific dynamic type identifier.Sets or updates property flags associated with the requested property key.Sets or updates language-specific object shape flags.Ensures the object's shape is up-to-date.Deprecated.DynamicObjectLibrary has been replaced by more lightweight DynamicObject nodes.Deprecated.A unique key to be used for private object fields; excluded from enumeration and compared by object identity.Deprecated.Deprecated.Property location.Deprecated.Deprecated.no replacement; dynamic type no longer needs to inherit fromObjectType.Property objects represent the mapping between property identifiers (keys) and storage locations.A lightweight property getter that allows getting the value of aDynamicObjectproperty without any lookup or cache dispatch.A Shape is an immutable descriptor of the current object "shape" of a DynamicObject, i.e., object layout, metadata (type, flags), and a mapping of properties to storage locations.Builder class to construct initialShapeinstances.Builder class to construct derivedShapeinstances.