public abstract class ArrayElementInfoNode extends JavaScriptBaseNode
isArrayElement* messages for arrays.| Modifier and Type | Field and Description |
|---|---|
static int |
INSERTABLE |
static int |
MODIFIABLE |
static int |
READABLE |
static int |
REMOVABLE |
static int |
WRITABLE |
| Modifier and Type | Method and Description |
|---|---|
abstract com.oracle.truffle.api.utilities.TriState |
execute(JSArrayBase receiver,
long index,
int query)
Returns:
TriState.TRUE if this array element is readable/modifiable/insertable/removable. |
boolean |
executeBoolean(JSArrayBase receiver,
long index,
int query) |
void |
executeCheck(JSArrayBase receiver,
long index,
int query) |
copy, getLanguage, getRealm, onReplaceaccept, adoptChildren, atomic, atomic, deepCopy, getChildren, getCost, getDebugProperties, getDescription, getEncapsulatingSourceSection, getLock, getParent, getRootNode, getSourceSection, insert, insert, isAdoptable, isSafelyReplaceableBy, notifyInserted, replace, replace, reportPolymorphicSpecialize, toStringpublic static final int READABLE
public static final int MODIFIABLE
public static final int INSERTABLE
public static final int REMOVABLE
public static final int WRITABLE
public abstract com.oracle.truffle.api.utilities.TriState execute(JSArrayBase receiver, long index, int query)
TriState.TRUE if this array element is readable/modifiable/insertable/removable.
TriState.FALSE if the operation cannot be performed for this array element.
TriState.UNDEFINED if the message is not supported for this array instance.
public final boolean executeBoolean(JSArrayBase receiver, long index, int query)
public final void executeCheck(JSArrayBase receiver, long index, int query) throws com.oracle.truffle.api.interop.UnsupportedMessageException, com.oracle.truffle.api.interop.InvalidArrayIndexException
com.oracle.truffle.api.interop.UnsupportedMessageExceptioncom.oracle.truffle.api.interop.InvalidArrayIndexException