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 PropertyDeprecated.abstract Objectget(DynamicObject store, boolean condition) Deprecated.abstract Objectget(DynamicObject store, Shape shape) Deprecated.abstract intgetFlags()Get property flags, which are free for language-specific use.abstract ObjectgetKey()Get property identifier.abstract LocationGet the property location.abstract booleanisHidden()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
-
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:
-