Java Code Examples for jdk.nashorn.internal.runtime.JSType#toLongMaybeOptimistic()

The following examples show how to use jdk.nashorn.internal.runtime.JSType#toLongMaybeOptimistic() . You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: NativeString.java    From jdk8u60 with GNU General Public License v2.0 4 votes vote down vote up
@Override
public long getLong(final Object key, final int programPoint) {
    return JSType.toLongMaybeOptimistic(get(key), programPoint);
}
 
Example 2
Source File: NativeString.java    From jdk8u60 with GNU General Public License v2.0 4 votes vote down vote up
@Override
public long getLong(final double key, final int programPoint) {
    return JSType.toLongMaybeOptimistic(get(key), programPoint);
}
 
Example 3
Source File: NativeString.java    From jdk8u60 with GNU General Public License v2.0 4 votes vote down vote up
@Override
public long getLong(final long key, final int programPoint) {
    return JSType.toLongMaybeOptimistic(get(key), programPoint);
}
 
Example 4
Source File: NativeString.java    From jdk8u60 with GNU General Public License v2.0 4 votes vote down vote up
@Override
public long getLong(final int key, final int programPoint) {
    return JSType.toLongMaybeOptimistic(get(key), programPoint);
}
 
Example 5
Source File: NativeJSAdapter.java    From jdk8u60 with GNU General Public License v2.0 4 votes vote down vote up
private long callAdapteeLong(final int programPoint, final String name, final Object... args) {
    return JSType.toLongMaybeOptimistic(callAdaptee(name, args), programPoint);
}