Package cn.nukkit.plugin.js.external
Class ExternalArray
java.lang.Object
cn.nukkit.plugin.js.JSExternal
cn.nukkit.plugin.js.external.ExternalArray
- All Implemented Interfaces:
org.graalvm.polyglot.proxy.Proxy
,org.graalvm.polyglot.proxy.ProxyArray
,org.graalvm.polyglot.proxy.ProxyIterable
public final class ExternalArray
extends JSExternal
implements org.graalvm.polyglot.proxy.ProxyArray
-
Nested Class Summary
Nested classes/interfaces inherited from class cn.nukkit.plugin.js.JSExternal
JSExternal.ReferenceNotAliveException
-
Field Summary
Fields inherited from class cn.nukkit.plugin.js.JSExternal
sourceContext, value
-
Constructor Summary
ConstructorDescriptionExternalArray
(org.graalvm.polyglot.Context sourceContext, org.graalvm.polyglot.Value value) -
Method Summary
Methods inherited from class cn.nukkit.plugin.js.JSExternal
canEqual, checkAlive, equals, getSourceContext, getValue, hashCode, isAlive, setAlive, toString
-
Constructor Details
-
ExternalArray
public ExternalArray(org.graalvm.polyglot.Context sourceContext, org.graalvm.polyglot.Value value)
-
-
Method Details
-
get
- Specified by:
get
in interfaceorg.graalvm.polyglot.proxy.ProxyArray
-
set
public void set(long index, org.graalvm.polyglot.Value value) - Specified by:
set
in interfaceorg.graalvm.polyglot.proxy.ProxyArray
-
remove
public boolean remove(long index) - Specified by:
remove
in interfaceorg.graalvm.polyglot.proxy.ProxyArray
-
getSize
public long getSize()- Specified by:
getSize
in interfaceorg.graalvm.polyglot.proxy.ProxyArray
-
getIterator
- Specified by:
getIterator
in interfaceorg.graalvm.polyglot.proxy.ProxyArray
- Specified by:
getIterator
in interfaceorg.graalvm.polyglot.proxy.ProxyIterable
-