Class DefaultStaticProperty

java.lang.Object
com.oracle.truffle.api.staticobject.StaticProperty
com.oracle.truffle.api.staticobject.DefaultStaticProperty

public final class DefaultStaticProperty extends StaticProperty
A trivial default implementation of StaticProperty.
Since:
21.3.0
See Also:
  • Constructor Details

    • DefaultStaticProperty

      public DefaultStaticProperty(String id)
      Constructs a new DefaultStaticProperty.
      Parameters:
      id - the id of the static property, which must be immutable and unique for a given shape.
      Since:
      21.3.0
      See Also:
  • Method Details

    • getId

      public String getId()
      StaticProperty instances must have a String identifier that is unique and constant for that shape. Subtypes of StaticProperty must make sure that the value returned by this method is constant in time.
      Specified by:
      getId in class StaticProperty
      Returns:
      the static property identifier
      Since:
      21.3.0