Class Layout

java.lang.Object
com.oracle.truffle.api.object.Layout

@Deprecated(since="21.1") public abstract class Layout extends Object
Deprecated.
since 21.1. Use Shape.Builder instead.
Describes layout and behavior of a DynamicObject subclass and is used to create shapes. An object may change its shape but only to shapes of the same layout. NB: Instances of this class should be created only in static initializers.
Since:
0.8 or earlier
  • Field Details

  • Constructor Details

    • Layout

      protected Layout()
      Deprecated.
      Constructor for subclasses.
      Since:
      0.8 or earlier
  • Method Details

    • getType

      public abstract Class<? extends DynamicObject> getType()
      Deprecated.
      Since:
      0.8 or earlier
    • buildShape

      protected Shape buildShape(Object dynamicType, Object sharedData, int flags, Assumption singleContextAssumption)
      Deprecated.
      Create a root shape.
      Since:
      20.2.0
    • getFactory

      protected static LayoutFactory getFactory()
      Deprecated.
      Since:
      0.8 or earlier