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

public abstract static class DynamicObject.ResetShapeNode extends Node
Empties and resets the object to the given root shape.
Since:
25.1
See Also:
  • Method Details

    • execute

      public abstract boolean execute(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).
      Parameters:
      newShape - the desired shape
      Returns:
      true if the object's shape was changed
      Throws:
      IllegalArgumentException - if the shape contains instance properties
    • create

      public static DynamicObject.ResetShapeNode create()
      Since:
      25.1
    • getUncached

      public static DynamicObject.ResetShapeNode getUncached()
      Since:
      25.1