/** * Pushes a String value to the next available spot in the Array. In * particular, this[length] = value; * * @param value The value to push to the array. * * @return The receiver. */ public V8Array push(final String value) { v8.checkThread(); checkReleased(); if (value == null) { v8.addArrayNullItem(v8.getV8RuntimePtr(), getHandle()); } else if (value.equals(V8.getUndefined())) { v8.addArrayUndefinedItem(v8.getV8RuntimePtr(), getHandle()); } else { v8.addArrayStringItem(v8.getV8RuntimePtr(), getHandle(), value); } return this; }
v8.addArrayBooleanItem(v8.getV8RuntimePtr(), getHandle(), (Boolean) value); } else if (value instanceof String) { v8.addArrayStringItem(v8.getV8RuntimePtr(), getHandle(), (String) value); } else if (value instanceof V8Value) { v8.addArrayObjectItem(v8.getV8RuntimePtr(), getHandle(), ((V8Value) value).getHandle());
/** * Pushes a String value to the next available spot in the Array. In * particular, this[length] = value; * * @param value The value to push to the array. * * @return The receiver. */ public V8Array push(final String value) { v8.checkThread(); checkReleased(); if (value == null) { v8.addArrayNullItem(v8.getV8RuntimePtr(), getHandle()); } else if (value.equals(V8.getUndefined())) { v8.addArrayUndefinedItem(v8.getV8RuntimePtr(), getHandle()); } else { v8.addArrayStringItem(v8.getV8RuntimePtr(), getHandle(), value); } return this; }
v8.addArrayBooleanItem(v8.getV8RuntimePtr(), getHandle(), (Boolean) value); } else if (value instanceof String) { v8.addArrayStringItem(v8.getV8RuntimePtr(), getHandle(), (String) value); } else if (value instanceof V8Value) { v8.addArrayObjectItem(v8.getV8RuntimePtr(), getHandle(), ((V8Value) value).getHandle());
/** * Pushes a String value to the next available spot in the Array. In * particular, this[length] = value; * * @param value The value to push to the array. * * @return The receiver. */ public V8Array push(final String value) { v8.checkThread(); checkReleased(); if (value == null) { v8.addArrayNullItem(v8.getV8RuntimePtr(), getHandle()); } else if (value.equals(V8.getUndefined())) { v8.addArrayUndefinedItem(v8.getV8RuntimePtr(), getHandle()); } else { v8.addArrayStringItem(v8.getV8RuntimePtr(), getHandle(), value); } return this; }
/** * Pushes a String value to the next available spot in the Array. In * particular, this[length] = value; * * @param value The value to push to the array. * * @return The receiver. */ public V8Array push(final String value) { v8.checkThread(); checkReleased(); if (value == null) { v8.addArrayNullItem(v8.getV8RuntimePtr(), getHandle()); } else if (value.equals(V8.getUndefined())) { v8.addArrayUndefinedItem(v8.getV8RuntimePtr(), getHandle()); } else { v8.addArrayStringItem(v8.getV8RuntimePtr(), getHandle(), value); } return this; }