Class DefaultStaticProperty
java.lang.Object
com.oracle.truffle.api.staticobject.StaticProperty
com.oracle.truffle.api.staticobject.DefaultStaticProperty
A trivial default implementation of
StaticProperty
.- Since:
- 21.3.0
- See Also:
-
Constructor Summary
-
Method Summary
Methods inherited from class com.oracle.truffle.api.staticobject.StaticProperty
compareAndExchangeBoolean, compareAndExchangeByte, compareAndExchangeChar, compareAndExchangeDouble, compareAndExchangeFloat, compareAndExchangeInt, compareAndExchangeLong, compareAndExchangeObject, compareAndExchangeShort, compareAndSwapBoolean, compareAndSwapByte, compareAndSwapChar, compareAndSwapDouble, compareAndSwapFloat, compareAndSwapInt, compareAndSwapLong, compareAndSwapObject, compareAndSwapShort, getAndAddInt, getAndAddLong, getAndSetInt, getAndSetLong, getAndSetObject, getBoolean, getBooleanVolatile, getByte, getByteVolatile, getChar, getCharVolatile, getDouble, getDoubleVolatile, getFloat, getFloatVolatile, getInt, getIntVolatile, getLong, getLongVolatile, getObject, getObjectVolatile, getShort, getShortVolatile, setBoolean, setBooleanVolatile, setByte, setByteVolatile, setChar, setCharVolatile, setDouble, setDoubleVolatile, setFloat, setFloatVolatile, setInt, setIntVolatile, setLong, setLongVolatile, setObject, setObjectVolatile, setShort, setShortVolatile
-
Constructor Details
-
DefaultStaticProperty
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
StaticProperty instances must have aString
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 classStaticProperty
- Returns:
- the static property identifier
- Since:
- 21.3.0
-