Class Property
java.lang.Object
com.oracle.truffle.api.object.Property
Property objects represent the mapping between property identifiers (keys) and storage locations.
Optionally, properties may have metadata attached to them.
- Since:
- 0.8 or earlier
-
Method Summary
Modifier and TypeMethodDescriptionstatic PropertyDeprecated.booleanget(DynamicObject store, boolean condition) Deprecated.get(DynamicObject store, Shape shape) Deprecated.intgetFlags()Get property flags, which are free for language-specific use.getKey()Get property identifier.Get the property location.inthashCode()booleanisHidden()Is this property hidden from iteration.toString()
-
Method Details
-
create
Deprecated.Create a new property.- Parameters:
key- the key of the propertylocation- location of the propertyflags- for language-specific use- Returns:
- new instance of the property
- Since:
- 0.8 or earlier
-
getKey
-
getFlags
public int getFlags()Get property flags, which are free for language-specific use.- Since:
- 0.8 or earlier
-
get
Deprecated.Gets the value of this property of the object.- Parameters:
store- the store that this property resides inshape- the current shape of the object, which must contain this location- Since:
- 0.8 or earlier
- See Also:
-
get
Deprecated.Gets the value of this property of the object.- Parameters:
store- the store that this property resides incondition- the result of a shape check orfalse- Since:
- 0.8 or earlier
- See Also:
-
getLocation
Get the property location. Planned to be deprecated.- Since:
- 0.8 or earlier
-
isHidden
public boolean isHidden()Is this property hidden from iteration.- Since:
- 0.8 or earlier
- See Also:
-
equals
-
hashCode
-
toString
-
DynamicObjectLibrary.getOrDefault(DynamicObject, Object, Object).