Class DynamicObject.ResetShapeNode
java.lang.Object
com.oracle.truffle.api.nodes.Node
com.oracle.truffle.api.object.DynamicObject.ResetShapeNode
- All Implemented Interfaces:
NodeInterface, Cloneable
- Enclosing class:
DynamicObject
Empties and resets the object to the given root shape.
- Since:
- 25.1
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class Node
Node.Child, Node.Children -
Method Summary
Modifier and TypeMethodDescriptionstatic DynamicObject.ResetShapeNodecreate()abstract booleanexecute(DynamicObject receiver, Shape newShape) Empties and resets the object to the given root shape, which must not contain any instance properties (but may contain properties with a constant value).static DynamicObject.ResetShapeNodeMethods 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
Empties and resets the object to the given root shape, which must not contain any instance properties (but may contain properties with a constant value).- Parameters:
newShape- the desired shape- Returns:
trueif the object's shape was changed- Throws:
IllegalArgumentException- if the shape contains instance properties
-
create
- Since:
- 25.1
-
getUncached
- Since:
- 25.1
-