Package com.oracle.truffle.api.object
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
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic Property
Deprecated.abstract Object
get
(DynamicObject store, boolean condition) Deprecated.abstract Object
get
(DynamicObject store, Shape shape) Deprecated.abstract int
getFlags()
Get property flags, which are free for language-specific use.abstract Object
getKey()
Get property identifier.abstract Location
Get the property location.abstract boolean
isHidden()
Is this property hidden from iteration.
-
Constructor Details
-
Property
Deprecated.do not use.Constructor for subclasses.- Since:
- 0.8 or earlier
-
-
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
Get property identifier.- Since:
- 0.8 or earlier
-
getFlags
public abstract 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 abstract boolean isHidden()Is this property hidden from iteration.- Since:
- 0.8 or earlier
- See Also:
-