Class DynamicObject.SetPropertyFlagsNode
java.lang.Object
com.oracle.truffle.api.nodes.Node
com.oracle.truffle.api.object.DynamicObject.SetPropertyFlagsNode
- All Implemented Interfaces:
NodeInterface, Cloneable
- Enclosing class:
DynamicObject
Sets or updates property flags associated with the requested property key.
- Since:
- 25.1
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class Node
Node.Child, Node.Children -
Method Summary
Modifier and TypeMethodDescriptioncreate()final booleanexecute(DynamicObject receiver, Object key, int propertyFlags) Sets the property flags associated with the requested property.final booleanexecuteAdd(DynamicObject receiver, Object key, int addedFlags) Adds property flags associated with the requested property.final booleanexecuteRemove(DynamicObject receiver, Object key, int removedFlags) Removes (clears) property flags associated with the requested property.final booleanexecuteRemoveAndAdd(DynamicObject receiver, Object key, int removedFlags, int addedFlags) Removes, then adds property flags associated with the requested property.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
Sets the property flags associated with the requested property.- Parameters:
key- the property key, compared by identity (==), not equality (equals). SeeDynamicObjectfor more information.- Returns:
trueif the property was found and its flags were changed, elsefalse- Since:
- 25.1
-
executeAdd
Adds property flags associated with the requested property.- Since:
- 25.1
- See Also:
-
executeRemove
Removes (clears) property flags associated with the requested property.- Since:
- 25.1
- See Also:
-
executeRemoveAndAdd
public final boolean executeRemoveAndAdd(DynamicObject receiver, Object key, int removedFlags, int addedFlags) Removes, then adds property flags associated with the requested property.- Since:
- 25.1
- See Also:
-
create
- Since:
- 25.1
-
getUncached
- Since:
- 25.1
-