Searched refs:lookupSupplier (Results 1 - 11 of 11) sorted by relevance

/openjdk9/nashorn/src/jdk.dynalink/share/classes/jdk/dynalink/
H A DLinkerServicesImpl.java178 public <T> T getWithLookup(final Supplier<T> operation, final SecureLookupSupplier lookupSupplier) { argument
181 Objects.requireNonNull(lookupSupplier, "lookupSupplier"));
184 private static <T> T getWithLookupInternal(final Supplier<T> operation, final SecureLookupSupplier lookupSupplier) { argument
186 final boolean differ = prevLookupSupplier != lookupSupplier;
188 threadLookupSupplier.set(lookupSupplier);
200 final SecureLookupSupplier lookupSupplier = threadLookupSupplier.get();
201 if (lookupSupplier != null) {
202 return lookupSupplier.getLookup();
H A DTypeConverterFactory.java402 final LookupSupplier lookupSupplier = new LookupSupplier();
405 final GuardedInvocation next = factories[i].convertToType(sourceType, targetType, lookupSupplier);
411 lookupSupplier.closed = true;
417 if(!lookupSupplier.returnedLookup) {
/openjdk9/nashorn/src/jdk.dynalink/share/classes/jdk/dynalink/linker/
H A DGuardingTypeConverterFactory.java130 * @param lookupSupplier a supplier for retrieving the lookup of the class
154 public GuardedInvocation convertToType(Class<?> sourceType, Class<?> targetType, Supplier<MethodHandles.Lookup> lookupSupplier) throws Exception; argument
H A DLinkerServices.java246 * @param lookupSupplier secure supplier of the lookup
248 * @throws NullPointerException if either action or lookupSupplier are null.
251 public <T> T getWithLookup(final Supplier<T> operation, final SecureLookupSupplier lookupSupplier); argument
/openjdk9/nashorn/src/jdk.scripting.nashorn/share/classes/jdk/nashorn/internal/runtime/linker/
H A DNashornLinker.java115 public GuardedInvocation convertToType(final Class<?> sourceType, final Class<?> targetType, final Supplier<MethodHandles.Lookup> lookupSupplier) throws Exception { argument
116 GuardedInvocation gi = convertToTypeNoCast(sourceType, targetType, lookupSupplier);
118 gi = getSamTypeConverter(sourceType, targetType, lookupSupplier);
133 private static GuardedInvocation convertToTypeNoCast(final Class<?> sourceType, final Class<?> targetType, final Supplier<MethodHandles.Lookup> lookupSupplier) throws Exception { argument
139 final GuardedInvocation arrayConverter = getArrayConverter(sourceType, targetType, lookupSupplier);
158 private static GuardedInvocation getSamTypeConverter(final Class<?> sourceType, final Class<?> targetType, final Supplier<MethodHandles.Lookup> lookupSupplier) throws Exception { argument
168 final MethodHandle ctor = JavaAdapterFactory.getConstructor(paramType, targetType, getCurrentLookup(lookupSupplier));
175 private static MethodHandles.Lookup getCurrentLookup(final Supplier<MethodHandles.Lookup> lookupSupplier) { argument
179 return lookupSupplier.get();
193 private static GuardedInvocation getArrayConverter(final Class<?> sourceType, final Class<?> targetType, final Supplier<MethodHandles.Lookup> lookupSupplier) { argument
[all...]
H A DNashornPrimitiveLinker.java81 public GuardedInvocation convertToType(final Class<?> sourceType, final Class<?> targetType, final Supplier<MethodHandles.Lookup> lookupSupplier) { argument
H A DNashornBeansLinker.java297 public <T> T getWithLookup(final Supplier<T> operation, final SecureLookupSupplier lookupSupplier) { argument
298 return linkerServices.getWithLookup(operation, lookupSupplier);
H A DNashornBottomLinker.java175 public GuardedInvocation convertToType(final Class<?> sourceType, final Class<?> targetType, final Supplier<MethodHandles.Lookup> lookupSupplier) throws Exception { argument
/openjdk9/nashorn/src/jdk.dynalink/share/classes/jdk/dynalink/beans/
H A DLinkerServicesWithMissingMemberHandlerFactory.java84 public <T> T getWithLookup(final Supplier<T> operation, final SecureLookupSupplier lookupSupplier) { argument
85 return linkerServices.getWithLookup(operation, lookupSupplier);
H A DOverloadedMethod.java112 private final SecureLookupSupplier lookupSupplier; field in class:OverloadedMethod
121 final SecureLookupSupplier lookupSupplier) {
127 this.lookupSupplier = lookupSupplier;
183 lookupSupplier);
116 OverloadedMethod(final List<MethodHandle> methodHandles, final OverloadedDynamicMethod parent, final ClassLoader callSiteClassLoader, final MethodType callSiteType, final LinkerServices linkerServices, final SecureLookupSupplier lookupSupplier) argument
/openjdk9/nashorn/src/jdk.scripting.nashorn/share/classes/jdk/nashorn/internal/runtime/
H A DJSType.java1332 * @param lookupSupplier supplier for the lookup of the class invoking the
1337 public static Object toJavaArrayWithLookup(final Object obj, final Class<?> componentType, final SecureLookupSupplier lookupSupplier) { argument
1338 return Bootstrap.getLinkerServices().getWithLookup(()->toJavaArray(obj, componentType), lookupSupplier);

Completed in 65 milliseconds