Tabnine Logo
V8Array.checkReleased
Code IndexAdd Tabnine to your IDE (free)

How to use
checkReleased
method
in
com.eclipsesource.v8.V8Array

Best Java code snippets using com.eclipsesource.v8.V8Array.checkReleased (Showing top 20 results out of 315)

origin: eclipsesource/J2V8

/**
 * Gets the value at a given index as a Java Object. Primitives are boxed.
 *
 * @param index The index to get the value at.
 *
 * @return The value at the given index.
 */
public Object get(final int index) {
  v8.checkThread();
  checkReleased();
  return v8.arrayGet(v8.getV8RuntimePtr(), V8_OBJECT, objectHandle, index);
}
origin: eclipsesource/J2V8

/**
 * Returns the type of element at this given index.
 *
 * @param index The index at which to lookup the type of.
 *
 * @return The type of the element at the index.
 */
public int getType(final int index) {
  v8.checkThread();
  checkReleased();
  return v8.getType(v8.getV8RuntimePtr(), getHandle(), index);
}
origin: eclipsesource/J2V8

/**
 * Gets the type of the array. Returns a 'type' if all the elements in the array
 * have the same type, otherwise UNDEFINED is returned.
 *
 * @return The type of all the elements of the array, or UNDEFINED if they
 * are not all the same type.
 */
public int getType() {
  v8.checkThread();
  checkReleased();
  return v8.getArrayType(v8.getV8RuntimePtr(), getHandle());
}
origin: eclipsesource/J2V8

/**
 * Returns the length of this array.
 *
 * @return The length of the array.
 */
public int length() {
  v8.checkThread();
  checkReleased();
  return v8.arrayGetSize(v8.getV8RuntimePtr(), getHandle());
}
origin: eclipsesource/J2V8

/**
 * Pushes null to the next available spot in the Array. In
 * particular, this[length] = null;
 *
 * @return The receiver.
 */
public V8Array pushNull() {
  v8.checkThread();
  checkReleased();
  v8.addArrayNullItem(v8.getV8RuntimePtr(), getHandle());
  return this;
}
origin: eclipsesource/J2V8

/**
 * Pushes undefined to the next available spot in the Array. In
 * particular, this[length] = undefined;
 *
 * @return The receiver.
 */
public V8Array pushUndefined() {
  v8.checkThread();
  checkReleased();
  v8.addArrayUndefinedItem(v8.getV8RuntimePtr(), getHandle());
  return this;
}
origin: eclipsesource/J2V8

/**
 * Returns the byte value associated at this index. If the value at
 * this index does not exist, or cannot be cast to a byte, then
 * V8ResultUndefined exception is thrown.
 *
 * @param index The index whose value to return
 * @return The byte value at this index or V8ResultUndefined
 * if the index does not exist or the value cannot be cast to a byte.
 */
public byte getByte(final int index) {
  v8.checkThread();
  checkReleased();
  return v8.arrayGetByte(v8.getV8RuntimePtr(), getHandle(), index);
}
origin: eclipsesource/J2V8

/**
 * Pushes an integer 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 int value) {
  v8.checkThread();
  checkReleased();
  v8.addArrayIntItem(v8.getV8RuntimePtr(), getHandle(), value);
  return this;
}
origin: eclipsesource/J2V8

/**
 * Pushes a boolean 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 boolean value) {
  v8.checkThread();
  checkReleased();
  v8.addArrayBooleanItem(v8.getV8RuntimePtr(), getHandle(), value);
  return this;
}
origin: eclipsesource/J2V8

/**
 * Pushes a double 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 double value) {
  v8.checkThread();
  checkReleased();
  v8.addArrayDoubleItem(v8.getV8RuntimePtr(), getHandle(), value);
  return this;
}
origin: eclipsesource/J2V8

/**
 * Returns the boolean value associated at this index. If the value
 * at this index does not exist, or if it's not a boolean, then
 * V8ResultUndefined exception is thrown.
 *
 * @param index The index whose value to return.
 *
 * @return The boolean value at this index or V8ResultUndefined
 * if the index does not exist or the value is not a boolean.
 */
public boolean getBoolean(final int index) {
  v8.checkThread();
  checkReleased();
  return v8.arrayGetBoolean(v8.getV8RuntimePtr(), getHandle(), index);
}
origin: eclipsesource/J2V8

/**
 * Returns the integer value associated at this index. If the value
 * at this index does not exist, or if it's not an integer, then
 * V8ResultUndefined exception is thrown.
 *
 * @param index The index whose value to return.
 *
 * @return The integer value at this index or V8ResultUndefined
 * if the index does not exist or the value is not an integer.
 */
public int getInteger(final int index) {
  v8.checkThread();
  checkReleased();
  return v8.arrayGetInteger(v8.getV8RuntimePtr(), getHandle(), index);
}
origin: eclipsesource/J2V8

/**
 * Returns the double value associated at this index. If the value
 * at this index does not exist, or if it's not a double, then
 * V8ResultUndefined exception is thrown.
 *
 * @param index The index whose value to return.
 *
 * @return The double value at this index or V8ResultUndefined
 * if the index does not exist or the value is not a double.
 */
public double getDouble(final int index) {
  v8.checkThread();
  checkReleased();
  return v8.arrayGetDouble(v8.getV8RuntimePtr(), getHandle(), index);
}
origin: eclipsesource/J2V8

/**
 * Returns the String value associated at this index. If the value
 * at this index does not exist, or if it's not a String, then
 * V8ResultUndefined exception is thrown.
 *
 * @param index The index whose value to return.
 *
 * @return The String value at this index or V8ResultUndefined
 * if the index does not exist or the value is not a String.
 */
public String getString(final int index) {
  v8.checkThread();
  checkReleased();
  return v8.arrayGetString(v8.getV8RuntimePtr(), getHandle(), index);
}
origin: eclipsesource/J2V8

/**
 * Gets the type of a subset of the array. The subset is specified by a start index
 * and a length. UNDEFINED is returned if all the elements in the subset are not
 * of the same type.
 *
 * @param index The start index.
 * @param length The length.
 *
 * @return The type of the subset of the array or UNDEFINED if the subset is not
 * all the same type.
 */
public int getType(final int index, final int length) {
  v8.checkThread();
  checkReleased();
  return v8.getType(v8.getV8RuntimePtr(), getHandle(), index, length);
}
origin: eclipsesource/J2V8

/**
 * Returns the booleans contained in a subset of a V8Array. If the subset
 * contains elements other than booleans, then a V8ResultUndefined exception
 * is thrown. Furthermore, if the subset is not entirely contained within the array,
 * then V8ResultUndefined exception is also thrown.
 *
 * @param index The starting index.
 * @param length The length.
 *
 * @return The booleans contained in the subset of the array, or V8ResultUndefined
 * exception.
 */
public boolean[] getBooleans(final int index, final int length) {
  v8.checkThread();
  checkReleased();
  return v8.arrayGetBooleans(v8.getV8RuntimePtr(), getHandle(), index, length);
}
origin: eclipsesource/J2V8

/**
 * Returns the integers contained in a subset of a V8Array. If the subset
 * contains elements other than integers, then a V8ResultUndefined exception
 * is thrown. Furthermore, if the subset is not entirely contained within the array,
 * then V8ResultUndefined exception is also thrown.
 *
 * @param index The starting index.
 * @param length The length.
 *
 * @return The integers contained in the subset of the array, or V8ResultUndefined
 * exception.
 */
public int[] getIntegers(final int index, final int length) {
  v8.checkThread();
  checkReleased();
  return v8.arrayGetIntegers(v8.getV8RuntimePtr(), getHandle(), index, length);
}
origin: eclipsesource/J2V8

/**
 * Returns the Strings contained in a subset of a V8Array. If the subset
 * contains elements other than Strings, then a V8ResultUndefined exception
 * is thrown. Furthermore, if the subset is not entirely contained within the array,
 * then V8ResultUndefined exception is also thrown.
 *
 * @param index The starting index.
 * @param length The length.
 *
 * @return The Strings contained in the subset of the array, or V8ResultUndefined
 * exception.
 */
public String[] getStrings(final int index, final int length) {
  v8.checkThread();
  checkReleased();
  return v8.arrayGetStrings(v8.getV8RuntimePtr(), getHandle(), index, length);
}
origin: eclipsesource/J2V8

/**
 * Returns the doubles contained in a subset of a V8Array. If the subset
 * contains elements other than doubles, then a V8ResultUndefined exception
 * is thrown. Furthermore, if the subset is not entirely contained within the array,
 * then V8ResultUndefined exception is also thrown.
 *
 * @param index The starting index.
 * @param length The length.
 *
 * @return The doubles contained in the subset of the array, or V8ResultUndefined
 * exception.
 */
public double[] getDoubles(final int index, final int length) {
  v8.checkThread();
  checkReleased();
  return v8.arrayGetDoubles(v8.getV8RuntimePtr(), getHandle(), index, length);
}
origin: eclipsesource/J2V8

/**
 * Returns the bytes contained in a subset of a V8Array. If the subset
 * contains elements that cannot be cast to bytes, then a V8ResultUndefined exception
 * is thrown. Furthermore, if the subset is not entirely contained within the array,
 * then V8ResultUndefined exception is also thrown.
 *
 * @param index The starting index.
 * @param length The length.
 *
 * @return The bytes contained in the subset of the array, or V8ResultUndefined
 * exception.
 */
public byte[] getBytes(final int index, final int length) {
  v8.checkThread();
  checkReleased();
  return v8.arrayGetBytes(v8.getV8RuntimePtr(), getHandle(), index, length);
}
com.eclipsesource.v8V8ArraycheckReleased

Popular methods of V8Array

  • get
    Gets the value at a given index as a Java Object. Primitives are boxed.
  • <init>
  • length
    Returns the length of this array.
  • push
    Pushes a boolean value to the next available spot in the Array. In particular, this[length] = value;
  • getDouble
  • getObject
  • getString
  • getArray
  • getBoolean
  • getBooleans
    Gets the booleans contained in a subset of a V8Array. If the subset contains elements other than boo
  • getBytes
    Gets the bytes contained in a subset of a V8Array. If the subset contains elements that cannot be ca
  • getDoubles
    Gets the doubles contained in a subset of a V8Array. If the subset contains elements other than doub
  • getBytes,
  • getDoubles,
  • getInteger,
  • getIntegers,
  • getStrings,
  • getType,
  • isReleased,
  • isUndefined,
  • pushNull,
  • pushUndefined

Popular in Java

  • Finding current android device location
  • getContentResolver (Context)
  • onCreateOptionsMenu (Activity)
  • orElseThrow (Optional)
    Return the contained value, if present, otherwise throw an exception to be created by the provided s
  • Menu (java.awt)
  • DateFormat (java.text)
    Formats or parses dates and times.This class provides factories for obtaining instances configured f
  • GregorianCalendar (java.util)
    GregorianCalendar is a concrete subclass of Calendarand provides the standard calendar used by most
  • JPanel (javax.swing)
  • JTable (javax.swing)
  • Logger (org.slf4j)
    The org.slf4j.Logger interface is the main user entry point of SLF4J API. It is expected that loggin
  • Top PhpStorm plugins
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now