Example usage for Java jdk.nashorn.internal.objects NativeArray fields, constructors, methods, implement or subclass
The text is from its open source code.
Object[] | asObjectArray() Return the array contents upcasted as an ObjectArray, regardless of representation |
NativeArray | construct(final boolean newObj, final Object self) ECMA 15.4.2.2 new Array (len) Specialized constructor for zero arguments - empty array |
NativeArray | construct(final boolean newObj, final Object self, final Object... args) ECMA 15.4.2.2 new Array (len) |
Object | construct(final boolean newObj, final Object self, final boolean element) ECMA 15.4.2.2 new Array (len) Specialized constructor for zero arguments - empty array |
NativeArray | construct(final boolean newObj, final Object self, final int length) ECMA 15.4.2.2 new Array (len) Specialized constructor for one integer argument (length) |
NativeArray | construct(final boolean newObj, final Object self, final long length) ECMA 15.4.2.2 new Array (len) Specialized constructor for one long argument (length) |
NativeArray | construct(final boolean newObj, final Object self, final double length) ECMA 15.4.2.2 new Array (len) Specialized constructor for one double argument (length) |
Object | get(final Object key) |
ArrayData | getArray() Get the ArrayData for this ScriptObject if it is an array |
Object | getLength() |
Object | pop(final Object self) ECMA 15.4.4.6 Array.prototype.pop () |
double | push(final Object self, final int arg) ECMA 15.4.4.7 Array.prototype.push (args...) Primitive specialization, LinkLogic |
double | push(final Object self, final long arg) ECMA 15.4.4.7 Array.prototype.push (args...) Primitive specialization, LinkLogic |
double | push(final Object self, final double arg) ECMA 15.4.4.7 Array.prototype.push (args...) Primitive specialization, LinkLogic |
Object | push(final Object self, final Object... args) ECMA 15.4.4.7 Array.prototype.push (args...) |
double | push(final Object self, final Object arg) ECMA 15.4.4.7 Array.prototype.push (args...) specialized for single object argument |
void | set(final Object key, final int value, final int callSiteFlags) |
int | size() Return the size of the ScriptObject - i.e. |
Iterator | valueIterator() Return a property value iterator. |
Collection | values() Return the values of the properties in the ScriptObject (java.util.Map-like method to help ScriptObjectMirror implementation) |