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

The following examples show how to use jdk.nashorn.internal.runtime.JSType#toNumberMaybeOptimistic() . 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 openjdk-jdk8u with GNU General Public License v2.0 4 votes vote down vote up
@Override
public double getDouble(final double key, final int programPoint) {
    return JSType.toNumberMaybeOptimistic(get(key), programPoint);
}
 
Example 2
Source File: NativeString.java    From openjdk-jdk9 with GNU General Public License v2.0 4 votes vote down vote up
@Override
public double getDouble(final int key, final int programPoint) {
    return JSType.toNumberMaybeOptimistic(get(key), programPoint);
}
 
Example 3
Source File: NativeString.java    From openjdk-jdk9 with GNU General Public License v2.0 4 votes vote down vote up
@Override
public double getDouble(final double key, final int programPoint) {
    return JSType.toNumberMaybeOptimistic(get(key), programPoint);
}
 
Example 4
Source File: NativeJSAdapter.java    From hottub with GNU General Public License v2.0 4 votes vote down vote up
private double callAdapteeDouble(final int programPoint, final String name, final Object... args) {
    return JSType.toNumberMaybeOptimistic(callAdaptee(name, args), programPoint);
}
 
Example 5
Source File: NativeJSAdapter.java    From openjdk-jdk8u-backup with GNU General Public License v2.0 4 votes vote down vote up
private double callAdapteeDouble(final int programPoint, final String name, final Object... args) {
    return JSType.toNumberMaybeOptimistic(callAdaptee(name, args), programPoint);
}
 
Example 6
Source File: NativeString.java    From openjdk-jdk8u-backup with GNU General Public License v2.0 4 votes vote down vote up
@Override
public double getDouble(final int key, final int programPoint) {
    return JSType.toNumberMaybeOptimistic(get(key), programPoint);
}
 
Example 7
Source File: NativeString.java    From jdk8u_nashorn with GNU General Public License v2.0 4 votes vote down vote up
@Override
public double getDouble(final Object key, final int programPoint) {
    return JSType.toNumberMaybeOptimistic(get(key), programPoint);
}
 
Example 8
Source File: NativeString.java    From openjdk-jdk8u-backup with GNU General Public License v2.0 4 votes vote down vote up
@Override
public double getDouble(final Object key, final int programPoint) {
    return JSType.toNumberMaybeOptimistic(get(key), programPoint);
}
 
Example 9
Source File: NativeString.java    From jdk8u_nashorn with GNU General Public License v2.0 4 votes vote down vote up
@Override
public double getDouble(final double key, final int programPoint) {
    return JSType.toNumberMaybeOptimistic(get(key), programPoint);
}
 
Example 10
Source File: NativeString.java    From openjdk-jdk8u with GNU General Public License v2.0 4 votes vote down vote up
@Override
public double getDouble(final int key, final int programPoint) {
    return JSType.toNumberMaybeOptimistic(get(key), programPoint);
}
 
Example 11
Source File: NativeString.java    From TencentKona-8 with GNU General Public License v2.0 4 votes vote down vote up
@Override
public double getDouble(final Object key, final int programPoint) {
    return JSType.toNumberMaybeOptimistic(get(key), programPoint);
}
 
Example 12
Source File: NativeString.java    From openjdk-jdk8u with GNU General Public License v2.0 4 votes vote down vote up
@Override
public double getDouble(final Object key, final int programPoint) {
    return JSType.toNumberMaybeOptimistic(get(key), programPoint);
}
 
Example 13
Source File: NativeJSAdapter.java    From jdk8u60 with GNU General Public License v2.0 4 votes vote down vote up
private double callAdapteeDouble(final int programPoint, final String name, final Object... args) {
    return JSType.toNumberMaybeOptimistic(callAdaptee(name, args), programPoint);
}
 
Example 14
Source File: NativeString.java    From jdk8u60 with GNU General Public License v2.0 4 votes vote down vote up
@Override
public double getDouble(final int key, final int programPoint) {
    return JSType.toNumberMaybeOptimistic(get(key), programPoint);
}
 
Example 15
Source File: NativeString.java    From jdk8u60 with GNU General Public License v2.0 4 votes vote down vote up
@Override
public double getDouble(final long key, final int programPoint) {
    return JSType.toNumberMaybeOptimistic(get(key), programPoint);
}
 
Example 16
Source File: NativeJSAdapter.java    From jdk8u_nashorn with GNU General Public License v2.0 4 votes vote down vote up
private double callAdapteeDouble(final int programPoint, final String name, final Object... args) {
    return JSType.toNumberMaybeOptimistic(callAdaptee(name, args), programPoint);
}
 
Example 17
Source File: NativeString.java    From jdk8u60 with GNU General Public License v2.0 4 votes vote down vote up
@Override
public double getDouble(final Object key, final int programPoint) {
    return JSType.toNumberMaybeOptimistic(get(key), programPoint);
}
 
Example 18
Source File: NativeString.java    From hottub with GNU General Public License v2.0 4 votes vote down vote up
@Override
public double getDouble(final double key, final int programPoint) {
    return JSType.toNumberMaybeOptimistic(get(key), programPoint);
}
 
Example 19
Source File: NativeString.java    From hottub with GNU General Public License v2.0 4 votes vote down vote up
@Override
public double getDouble(final int key, final int programPoint) {
    return JSType.toNumberMaybeOptimistic(get(key), programPoint);
}
 
Example 20
Source File: NativeString.java    From TencentKona-8 with GNU General Public License v2.0 4 votes vote down vote up
@Override
public double getDouble(final double key, final int programPoint) {
    return JSType.toNumberMaybeOptimistic(get(key), programPoint);
}