/openjdk9/nashorn/src/jdk.dynalink/share/classes/jdk/dynalink/ |
H A D | LinkerServicesImpl.java | 178 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 D | TypeConverterFactory.java | 402 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 D | GuardingTypeConverterFactory.java | 130 * @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 D | LinkerServices.java | 246 * @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 D | NashornLinker.java | 115 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 D | NashornPrimitiveLinker.java | 81 public GuardedInvocation convertToType(final Class<?> sourceType, final Class<?> targetType, final Supplier<MethodHandles.Lookup> lookupSupplier) { argument
|
H A D | NashornBeansLinker.java | 297 public <T> T getWithLookup(final Supplier<T> operation, final SecureLookupSupplier lookupSupplier) { argument 298 return linkerServices.getWithLookup(operation, lookupSupplier);
|
H A D | NashornBottomLinker.java | 175 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 D | LinkerServicesWithMissingMemberHandlerFactory.java | 84 public <T> T getWithLookup(final Supplier<T> operation, final SecureLookupSupplier lookupSupplier) { argument 85 return linkerServices.getWithLookup(operation, lookupSupplier);
|
H A D | OverloadedMethod.java | 112 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 D | JSType.java | 1332 * @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);
|