Class DynamicObject.GetPropertyArrayNode
java.lang.Object
com.oracle.truffle.api.nodes.Node
com.oracle.truffle.api.object.DynamicObject.GetPropertyArrayNode
- All Implemented Interfaces:
NodeInterface, Cloneable
- Enclosing class:
DynamicObject
Gets a snapshot of the object's properties, in insertion order.
- Since:
- 25.1
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class Node
Node.Child, Node.Children -
Method Summary
Modifier and TypeMethodDescriptioncreate()abstract Property[]execute(DynamicObject receiver) Gets an array snapshot of the object's properties, in insertion order.Methods inherited from class Node
accept, adoptChildren, atomic, atomic, copy, deepCopy, getChildren, getCost, getDebugProperties, getDescription, getEncapsulatingSourceSection, getLock, getParent, getRootNode, getSourceSection, insert, insert, isAdoptable, isSafelyReplaceableBy, notifyInserted, onReplace, replace, replace, reportPolymorphicSpecialize, reportReplace, toString
-
Method Details
-
execute
Gets an array snapshot of the object's properties, in insertion order. The returned array may have been cached and must not be mutated. Properties with aHiddenKeyare not included. Similar toDynamicObject.GetKeyArrayNodebut allows the properties' flags to be queried simultaneously which may be relevant for quick filtering.- Returns:
- a read-only array of the object's properties. Do not modify.
- See Also:
-
create
- Since:
- 25.1
-
getUncached
- Since:
- 25.1
-