jdk.nashorn.internal.runtime.linker.PrimitiveLookup Java Examples
The following examples show how to use
jdk.nashorn.internal.runtime.linker.PrimitiveLookup.
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: NativeBoolean.java From openjdk-jdk9 with GNU General Public License v2.0 | 2 votes |
/** * Lookup the appropriate method for an invoke dynamic call. * * @param request The link request * @param receiver The receiver for the call * @return Link to be invoked at call site. */ public static GuardedInvocation lookupPrimitive(final LinkRequest request, final Object receiver) { return PrimitiveLookup.lookupPrimitive(request, Boolean.class, new NativeBoolean((Boolean)receiver), WRAPFILTER, PROTOFILTER); }
Example #2
Source File: NativeBoolean.java From nashorn with GNU General Public License v2.0 | 2 votes |
/** * Lookup the appropriate method for an invoke dynamic call. * * @param request The link request * @param receiver The receiver for the call * @return Link to be invoked at call site. */ public static GuardedInvocation lookupPrimitive(final LinkRequest request, final Object receiver) { return PrimitiveLookup.lookupPrimitive(request, Boolean.class, new NativeBoolean((Boolean)receiver), WRAPFILTER); }
Example #3
Source File: NativeNumber.java From nashorn with GNU General Public License v2.0 | 2 votes |
/** * Lookup the appropriate method for an invoke dynamic call. * @param request The link request * @param receiver receiver of call * @return Link to be invoked at call site. */ public static GuardedInvocation lookupPrimitive(final LinkRequest request, final Object receiver) { return PrimitiveLookup.lookupPrimitive(request, Number.class, new NativeNumber(((Number)receiver).doubleValue()), WRAPFILTER); }
Example #4
Source File: NativeString.java From nashorn with GNU General Public License v2.0 | 2 votes |
/** * Lookup the appropriate method for an invoke dynamic call. * * @param request the link request * @param receiver receiver of call * @return Link to be invoked at call site. */ public static GuardedInvocation lookupPrimitive(final LinkRequest request, final Object receiver) { final MethodHandle guard = NashornGuards.getInstanceOf2Guard(String.class, ConsString.class); return PrimitiveLookup.lookupPrimitive(request, guard, new NativeString((CharSequence)receiver), WRAPFILTER); }
Example #5
Source File: NativeBoolean.java From jdk8u_nashorn with GNU General Public License v2.0 | 2 votes |
/** * Lookup the appropriate method for an invoke dynamic call. * * @param request The link request * @param receiver The receiver for the call * @return Link to be invoked at call site. */ public static GuardedInvocation lookupPrimitive(final LinkRequest request, final Object receiver) { return PrimitiveLookup.lookupPrimitive(request, Boolean.class, new NativeBoolean((Boolean)receiver), WRAPFILTER, PROTOFILTER); }
Example #6
Source File: NativeNumber.java From jdk8u_nashorn with GNU General Public License v2.0 | 2 votes |
/** * Lookup the appropriate method for an invoke dynamic call. * @param request The link request * @param receiver receiver of call * @return Link to be invoked at call site. */ public static GuardedInvocation lookupPrimitive(final LinkRequest request, final Object receiver) { return PrimitiveLookup.lookupPrimitive(request, NashornGuards.getNumberGuard(), new NativeNumber(((Number)receiver).doubleValue()), WRAPFILTER, PROTOFILTER); }
Example #7
Source File: NativeString.java From jdk8u_nashorn with GNU General Public License v2.0 | 2 votes |
/** * Lookup the appropriate method for an invoke dynamic call. * * @param request the link request * @param receiver receiver of call * @return Link to be invoked at call site. */ public static GuardedInvocation lookupPrimitive(final LinkRequest request, final Object receiver) { return PrimitiveLookup.lookupPrimitive(request, NashornGuards.getStringGuard(), new NativeString((CharSequence)receiver), WRAPFILTER, PROTOFILTER); }
Example #8
Source File: NativeBoolean.java From openjdk-8 with GNU General Public License v2.0 | 2 votes |
/** * Lookup the appropriate method for an invoke dynamic call. * * @param request The link request * @param receiver The receiver for the call * @return Link to be invoked at call site. */ public static GuardedInvocation lookupPrimitive(final LinkRequest request, final Object receiver) { return PrimitiveLookup.lookupPrimitive(request, Boolean.class, new NativeBoolean((Boolean)receiver), WRAPFILTER); }
Example #9
Source File: NativeNumber.java From openjdk-8 with GNU General Public License v2.0 | 2 votes |
/** * Lookup the appropriate method for an invoke dynamic call. * @param request The link request * @param receiver receiver of call * @return Link to be invoked at call site. */ public static GuardedInvocation lookupPrimitive(final LinkRequest request, final Object receiver) { return PrimitiveLookup.lookupPrimitive(request, Number.class, new NativeNumber(((Number)receiver).doubleValue()), WRAPFILTER); }
Example #10
Source File: NativeString.java From openjdk-8 with GNU General Public License v2.0 | 2 votes |
/** * Lookup the appropriate method for an invoke dynamic call. * * @param request the link request * @param receiver receiver of call * @return Link to be invoked at call site. */ public static GuardedInvocation lookupPrimitive(final LinkRequest request, final Object receiver) { final MethodHandle guard = NashornGuards.getInstanceOf2Guard(String.class, ConsString.class); return PrimitiveLookup.lookupPrimitive(request, guard, new NativeString((CharSequence)receiver), WRAPFILTER); }
Example #11
Source File: NativeBoolean.java From openjdk-8-source with GNU General Public License v2.0 | 2 votes |
/** * Lookup the appropriate method for an invoke dynamic call. * * @param request The link request * @param receiver The receiver for the call * @return Link to be invoked at call site. */ public static GuardedInvocation lookupPrimitive(final LinkRequest request, final Object receiver) { return PrimitiveLookup.lookupPrimitive(request, Boolean.class, new NativeBoolean((Boolean)receiver), WRAPFILTER); }
Example #12
Source File: NativeNumber.java From openjdk-8-source with GNU General Public License v2.0 | 2 votes |
/** * Lookup the appropriate method for an invoke dynamic call. * @param request The link request * @param receiver receiver of call * @return Link to be invoked at call site. */ public static GuardedInvocation lookupPrimitive(final LinkRequest request, final Object receiver) { return PrimitiveLookup.lookupPrimitive(request, Number.class, new NativeNumber(((Number)receiver).doubleValue()), WRAPFILTER); }
Example #13
Source File: NativeString.java From openjdk-8-source with GNU General Public License v2.0 | 2 votes |
/** * Lookup the appropriate method for an invoke dynamic call. * * @param request the link request * @param receiver receiver of call * @return Link to be invoked at call site. */ public static GuardedInvocation lookupPrimitive(final LinkRequest request, final Object receiver) { final MethodHandle guard = NashornGuards.getInstanceOf2Guard(String.class, ConsString.class); return PrimitiveLookup.lookupPrimitive(request, guard, new NativeString((CharSequence)receiver), WRAPFILTER); }
Example #14
Source File: NativeBoolean.java From hottub with GNU General Public License v2.0 | 2 votes |
/** * Lookup the appropriate method for an invoke dynamic call. * * @param request The link request * @param receiver The receiver for the call * @return Link to be invoked at call site. */ public static GuardedInvocation lookupPrimitive(final LinkRequest request, final Object receiver) { return PrimitiveLookup.lookupPrimitive(request, Boolean.class, new NativeBoolean((Boolean)receiver), WRAPFILTER, PROTOFILTER); }
Example #15
Source File: NativeNumber.java From hottub with GNU General Public License v2.0 | 2 votes |
/** * Lookup the appropriate method for an invoke dynamic call. * @param request The link request * @param receiver receiver of call * @return Link to be invoked at call site. */ public static GuardedInvocation lookupPrimitive(final LinkRequest request, final Object receiver) { return PrimitiveLookup.lookupPrimitive(request, NashornGuards.getNumberGuard(), new NativeNumber(((Number)receiver).doubleValue()), WRAPFILTER, PROTOFILTER); }
Example #16
Source File: NativeString.java From hottub with GNU General Public License v2.0 | 2 votes |
/** * Lookup the appropriate method for an invoke dynamic call. * * @param request the link request * @param receiver receiver of call * @return Link to be invoked at call site. */ public static GuardedInvocation lookupPrimitive(final LinkRequest request, final Object receiver) { return PrimitiveLookup.lookupPrimitive(request, NashornGuards.getStringGuard(), new NativeString((CharSequence)receiver), WRAPFILTER, PROTOFILTER); }
Example #17
Source File: NativeString.java From TencentKona-8 with GNU General Public License v2.0 | 2 votes |
/** * Lookup the appropriate method for an invoke dynamic call. * * @param request the link request * @param receiver receiver of call * @return Link to be invoked at call site. */ public static GuardedInvocation lookupPrimitive(final LinkRequest request, final Object receiver) { return PrimitiveLookup.lookupPrimitive(request, NashornGuards.getStringGuard(), new NativeString((CharSequence)receiver), WRAPFILTER, PROTOFILTER); }
Example #18
Source File: NativeNumber.java From openjdk-jdk9 with GNU General Public License v2.0 | 2 votes |
/** * Lookup the appropriate method for an invoke dynamic call. * @param request The link request * @param receiver receiver of call * @return Link to be invoked at call site. */ public static GuardedInvocation lookupPrimitive(final LinkRequest request, final Object receiver) { return PrimitiveLookup.lookupPrimitive(request, NashornGuards.getNumberGuard(), new NativeNumber(((Number)receiver).doubleValue()), WRAPFILTER, PROTOFILTER); }
Example #19
Source File: NativeSymbol.java From openjdk-jdk9 with GNU General Public License v2.0 | 2 votes |
/** * Lookup the appropriate method for an invoke dynamic call. * * @param request The link request * @param receiver The receiver for the call * @return Link to be invoked at call site. */ public static GuardedInvocation lookupPrimitive(final LinkRequest request, final Object receiver) { return PrimitiveLookup.lookupPrimitive(request, Symbol.class, new NativeSymbol((Symbol)receiver), WRAPFILTER, PROTOFILTER); }
Example #20
Source File: NativeString.java From openjdk-jdk9 with GNU General Public License v2.0 | 2 votes |
/** * Lookup the appropriate method for an invoke dynamic call. * * @param request the link request * @param receiver receiver of call * @return Link to be invoked at call site. */ public static GuardedInvocation lookupPrimitive(final LinkRequest request, final Object receiver) { return PrimitiveLookup.lookupPrimitive(request, NashornGuards.getStringGuard(), new NativeString((CharSequence)receiver), WRAPFILTER, PROTOFILTER); }
Example #21
Source File: NativeBoolean.java From openjdk-jdk8u-backup with GNU General Public License v2.0 | 2 votes |
/** * Lookup the appropriate method for an invoke dynamic call. * * @param request The link request * @param receiver The receiver for the call * @return Link to be invoked at call site. */ public static GuardedInvocation lookupPrimitive(final LinkRequest request, final Object receiver) { return PrimitiveLookup.lookupPrimitive(request, Boolean.class, new NativeBoolean((Boolean)receiver), WRAPFILTER, PROTOFILTER); }
Example #22
Source File: NativeNumber.java From openjdk-jdk8u-backup with GNU General Public License v2.0 | 2 votes |
/** * Lookup the appropriate method for an invoke dynamic call. * @param request The link request * @param receiver receiver of call * @return Link to be invoked at call site. */ public static GuardedInvocation lookupPrimitive(final LinkRequest request, final Object receiver) { return PrimitiveLookup.lookupPrimitive(request, NashornGuards.getNumberGuard(), new NativeNumber(((Number)receiver).doubleValue()), WRAPFILTER, PROTOFILTER); }
Example #23
Source File: NativeString.java From openjdk-jdk8u-backup with GNU General Public License v2.0 | 2 votes |
/** * Lookup the appropriate method for an invoke dynamic call. * * @param request the link request * @param receiver receiver of call * @return Link to be invoked at call site. */ public static GuardedInvocation lookupPrimitive(final LinkRequest request, final Object receiver) { return PrimitiveLookup.lookupPrimitive(request, NashornGuards.getStringGuard(), new NativeString((CharSequence)receiver), WRAPFILTER, PROTOFILTER); }
Example #24
Source File: NativeBoolean.java From openjdk-jdk8u with GNU General Public License v2.0 | 2 votes |
/** * Lookup the appropriate method for an invoke dynamic call. * * @param request The link request * @param receiver The receiver for the call * @return Link to be invoked at call site. */ public static GuardedInvocation lookupPrimitive(final LinkRequest request, final Object receiver) { return PrimitiveLookup.lookupPrimitive(request, Boolean.class, new NativeBoolean((Boolean)receiver), WRAPFILTER, PROTOFILTER); }
Example #25
Source File: NativeNumber.java From openjdk-jdk8u with GNU General Public License v2.0 | 2 votes |
/** * Lookup the appropriate method for an invoke dynamic call. * @param request The link request * @param receiver receiver of call * @return Link to be invoked at call site. */ public static GuardedInvocation lookupPrimitive(final LinkRequest request, final Object receiver) { return PrimitiveLookup.lookupPrimitive(request, NashornGuards.getNumberGuard(), new NativeNumber(((Number)receiver).doubleValue()), WRAPFILTER, PROTOFILTER); }
Example #26
Source File: NativeString.java From openjdk-jdk8u with GNU General Public License v2.0 | 2 votes |
/** * Lookup the appropriate method for an invoke dynamic call. * * @param request the link request * @param receiver receiver of call * @return Link to be invoked at call site. */ public static GuardedInvocation lookupPrimitive(final LinkRequest request, final Object receiver) { return PrimitiveLookup.lookupPrimitive(request, NashornGuards.getStringGuard(), new NativeString((CharSequence)receiver), WRAPFILTER, PROTOFILTER); }
Example #27
Source File: NativeBoolean.java From jdk8u60 with GNU General Public License v2.0 | 2 votes |
/** * Lookup the appropriate method for an invoke dynamic call. * * @param request The link request * @param receiver The receiver for the call * @return Link to be invoked at call site. */ public static GuardedInvocation lookupPrimitive(final LinkRequest request, final Object receiver) { return PrimitiveLookup.lookupPrimitive(request, Boolean.class, new NativeBoolean((Boolean)receiver), WRAPFILTER, PROTOFILTER); }
Example #28
Source File: NativeNumber.java From jdk8u60 with GNU General Public License v2.0 | 2 votes |
/** * Lookup the appropriate method for an invoke dynamic call. * @param request The link request * @param receiver receiver of call * @return Link to be invoked at call site. */ public static GuardedInvocation lookupPrimitive(final LinkRequest request, final Object receiver) { return PrimitiveLookup.lookupPrimitive(request, Number.class, new NativeNumber(((Number)receiver).doubleValue()), WRAPFILTER, PROTOFILTER); }
Example #29
Source File: NativeString.java From jdk8u60 with GNU General Public License v2.0 | 2 votes |
/** * Lookup the appropriate method for an invoke dynamic call. * * @param request the link request * @param receiver receiver of call * @return Link to be invoked at call site. */ public static GuardedInvocation lookupPrimitive(final LinkRequest request, final Object receiver) { final MethodHandle guard = NashornGuards.getInstanceOf2Guard(String.class, ConsString.class); return PrimitiveLookup.lookupPrimitive(request, guard, new NativeString((CharSequence)receiver), WRAPFILTER, PROTOFILTER); }
Example #30
Source File: NativeBoolean.java From TencentKona-8 with GNU General Public License v2.0 | 2 votes |
/** * Lookup the appropriate method for an invoke dynamic call. * * @param request The link request * @param receiver The receiver for the call * @return Link to be invoked at call site. */ public static GuardedInvocation lookupPrimitive(final LinkRequest request, final Object receiver) { return PrimitiveLookup.lookupPrimitive(request, Boolean.class, new NativeBoolean((Boolean)receiver), WRAPFILTER, PROTOFILTER); }