public class JSProperty extends Object
Modifier and Type | Field and Description |
---|---|
static int |
ACCESSOR
Is this property an accessor or data property?
|
static int |
CONST |
static int |
PROXY
Is this property a proxy property?
|
Constructor and Description |
---|
JSProperty() |
Modifier and Type | Method and Description |
---|---|
protected static String |
getAttributeString(com.oracle.truffle.api.object.Property property,
boolean positive) |
static PropertyProxy |
getConstantProxy(com.oracle.truffle.api.object.Property proxyProperty) |
static Object |
getValue(com.oracle.truffle.api.object.Property property,
com.oracle.truffle.api.object.DynamicObject store,
Object thisObj,
boolean floatingCondition)
Get the value assigned to this property in the given object and store.
|
static boolean |
isAccessor(int flags) |
static boolean |
isAccessor(com.oracle.truffle.api.object.Property property) |
static boolean |
isConfigurable(int flags) |
static boolean |
isConfigurable(com.oracle.truffle.api.object.Property property) |
static boolean |
isConst(int flags) |
static boolean |
isConst(com.oracle.truffle.api.object.Property property) |
static boolean |
isData(int flags) |
static boolean |
isData(com.oracle.truffle.api.object.Property property) |
static boolean |
isEnumerable(int flags) |
static boolean |
isEnumerable(com.oracle.truffle.api.object.Property property) |
static boolean |
isProxy(int flags) |
static boolean |
isProxy(com.oracle.truffle.api.object.Property property) |
static boolean |
isWritable(int flags) |
static boolean |
isWritable(com.oracle.truffle.api.object.Property property) |
static boolean |
setValue(com.oracle.truffle.api.object.Property property,
com.oracle.truffle.api.object.DynamicObject store,
Object thisObj,
Object value,
boolean isStrict)
Set the value assigned to this property in the given object and store.
|
String |
toString(com.oracle.truffle.api.object.Property property) |
public static final int ACCESSOR
public static final int PROXY
public static final int CONST
public String toString(com.oracle.truffle.api.object.Property property)
protected static String getAttributeString(com.oracle.truffle.api.object.Property property, boolean positive)
public static Object getValue(com.oracle.truffle.api.object.Property property, com.oracle.truffle.api.object.DynamicObject store, Object thisObj, boolean floatingCondition)
thisObj
- the object that this property was found instore
- the store that this property's value resides inpublic static boolean setValue(com.oracle.truffle.api.object.Property property, com.oracle.truffle.api.object.DynamicObject store, Object thisObj, Object value, boolean isStrict)
store
- the store that this property's value resides inthisObj
- the object that this property was found invalue
- the value to assign to this propertyisStrict
- whether the set is in a strict mode functionpublic static boolean isConfigurable(com.oracle.truffle.api.object.Property property)
public static boolean isEnumerable(com.oracle.truffle.api.object.Property property)
public static boolean isWritable(com.oracle.truffle.api.object.Property property)
public static boolean isProxy(com.oracle.truffle.api.object.Property property)
public static boolean isAccessor(com.oracle.truffle.api.object.Property property)
public static boolean isData(com.oracle.truffle.api.object.Property property)
public static boolean isConst(com.oracle.truffle.api.object.Property property)
public static boolean isConfigurable(int flags)
public static boolean isEnumerable(int flags)
public static boolean isWritable(int flags)
public static boolean isProxy(int flags)
public static boolean isAccessor(int flags)
public static boolean isData(int flags)
public static boolean isConst(int flags)
public static PropertyProxy getConstantProxy(com.oracle.truffle.api.object.Property proxyProperty)