/openjdk10/nashorn/test/script/basic/ |
H A D | interfaces.js | 43 var callable = new java.util.concurrent.Callable() { 50 print(callable.call());
|
/openjdk10/nashorn/src/jdk.scripting.nashorn/share/classes/jdk/nashorn/internal/runtime/linker/ |
H A D | BoundCallable.java | 32 * Represents a Nashorn callable bound to a receiver and optionally arguments. Note that objects of this class 33 * are just the tuples of a callable and a bound this and arguments, without any behavior. All the behavior is 37 private final Object callable; field in class:BoundCallable 41 BoundCallable(final Object callable, final Object boundThis, final Object[] boundArgs) { argument 42 this.callable = callable; 48 this.callable = original.callable; 54 return callable; 90 final StringBuilder b = new StringBuilder(callable [all...] |
H A D | Bootstrap.java | 147 * Returns if the given object is a "callable" 149 * @return true if the obj is callable 165 * Returns true if the given object is a strict callable 166 * @param callable the callable object to be checked for strictness 167 * @return true if the obj is a strict callable, false if it is a non-strict callable. 168 * @throws ECMAException with {@code TypeError} if the object is not a callable. 170 public static boolean isStrictCallable(final Object callable) { argument 171 if (callable instanceo 387 bindCallable(final Object callable, final Object boundThis, final Object[] boundArgs) argument [all...] |
H A D | BoundCallableLinker.java | 43 * Links {@link BoundCallable} objects. Passes through to linker services for linking a callable (for either 73 final Object callable = boundCallable.getCallable(); 76 // We need to ask the linker services for a delegate invocation on the target callable. 78 // Replace arguments (boundCallable[, this], args) => (callable[, boundThis], boundArgs, args) when delegating 84 newArgs[0] = callable; 95 // Use R(T0, T1, T2, ...) => R(callable.class, boundThis.class, boundArg0.class, ..., boundArgn.class, T2, ...) 98 // Use R(T0, ...) => R(callable.class, ...) 99 MethodType newMethodType = descriptor.getMethodType().changeParameterType(0, callable.getClass()); 101 // R(callable.class, T1, ...) => R(callable [all...] |
/openjdk10/jdk/test/javax/swing/JPopupMenu/Separator/6547087/ |
H A D | bug6547087.java | 54 static <T> T invokeAndWait(Callable<T> callable) throws Exception { argument 55 FutureTask<T> future = new FutureTask<T>(callable);
|
/openjdk10/langtools/test/tools/javac/T8047338/ |
H A D | FilterNonMembersToObtainFunctionDescriptorTest.java | 32 <V, E extends Exception> V fails(CallableFail<V, E> callable) throws E { argument 36 <V, E extends Exception> V failsSub(CallableFailSub<V, E> callable) throws E { argument
|
/openjdk10/jdk/src/java.base/share/classes/java/util/concurrent/ |
H A D | ScheduledExecutorService.java | 113 * @param callable the function to execute 116 * @param <V> the type of the callable's result 120 * @throws NullPointerException if callable or unit is null 122 public <V> ScheduledFuture<V> schedule(Callable<V> callable, argument
|
H A D | FutureTask.java | 101 /** The underlying callable; nulled out after running */ 102 private Callable<V> callable; field in class:FutureTask 105 /** The thread running the callable; CASed during run() */ 129 * @param callable the callable task 130 * @throws NullPointerException if the callable is null 132 public FutureTask(Callable<V> callable) { argument 133 if (callable == null) 135 this.callable = callable; [all...] |
H A D | Executors.java | 404 * @return a callable object 407 public static <T> Callable<T> callable(Runnable task, T result) { method in class:Executors 417 * @return a callable object 420 public static Callable<Object> callable(Runnable task) { method in class:Executors 430 * @return a callable object 433 public static Callable<Object> callable(final PrivilegedAction<?> action) { method in class:Executors 445 * @return a callable object 448 public static Callable<Object> callable(final PrivilegedExceptionAction<?> action) { method in class:Executors 457 * execute the given {@code callable} under the current access 464 * @param callable th 469 privilegedCallable(Callable<T> callable) argument 495 privilegedCallableUsingCurrentClassLoader(Callable<T> callable) argument 737 schedule(Callable<V> callable, long delay, TimeUnit unit) argument [all...] |
H A D | ScheduledThreadPoolExecutor.java | 236 ScheduledFutureTask(Callable<V> callable, long triggerTime, argument 238 super(callable); 413 * Modifies or replaces the task used to execute a callable. 418 * @param callable the submitted Callable 419 * @param task the task created to execute the callable 421 * @return a task that can execute the callable 425 Callable<V> callable, RunnableScheduledFuture<V> task) { 570 public <V> ScheduledFuture<V> schedule(Callable<V> callable, argument 573 if (callable == null || unit == null) 575 RunnableScheduledFuture<V> t = decorateTask(callable, 424 decorateTask( Callable<V> callable, RunnableScheduledFuture<V> task) argument [all...] |
/openjdk10/hotspot/test/compiler/tiered/ |
H A D | ConstantGettersTransitionsTest.java | 88 private final Callable<Integer> callable; field in class:ConstantGettersTransitionsTest.ConstantGettersTestCase 97 return callable; 108 this.callable = LevelTransitionTest.Helper.getCallable(new TrivialMethods(), name);
|
H A D | LevelTransitionTest.java | 213 private final Callable<Integer> callable; field in class:LevelTransitionTest.ExtendedTestCase 222 return callable; 232 this.callable = LevelTransitionTest.Helper.getCallable(new CompileMethodHolder(), methodName);
|
/openjdk10/jaxws/src/java.xml.ws/share/classes/com/sun/xml/internal/ws/client/ |
H A D | AsyncResponseImpl.java | 53 private final Runnable callable; field in class:AsyncResponseImpl 66 this.callable = runnable; 75 callable.run();
|
/openjdk10/jdk/test/java/util/concurrent/Executors/ |
H A D | Throws.java | 31 import static java.util.concurrent.Executors.callable; 67 () -> callable(null, "foo"), 68 () -> callable((Runnable) null), 69 () -> callable((PrivilegedAction<?>) null), 70 () -> callable((PrivilegedExceptionAction<?>) null),
|
/openjdk10/jdk/test/java/util/concurrent/tck/ |
H A D | ExecutorsTest.java | 234 Future f = p.schedule(Executors.callable(task, Boolean.TRUE), 258 Future f = p.schedule(Executors.callable(task, Boolean.TRUE), 284 Future f = p.schedule(Executors.callable(task, Boolean.TRUE), 543 * callable(Runnable) returns null when called 546 Callable c = Executors.callable(new NoOpRunnable()); 551 * callable(Runnable, result) returns result when called 554 Callable c = Executors.callable(new NoOpRunnable(), one); 559 * callable(PrivilegedAction) returns its result when called 562 Callable c = Executors.callable(new PrivilegedAction() { 568 * callable(PrivilegedExceptionActio [all...] |
H A D | ForkJoinPoolTest.java | 461 * Completed submit(callable) returns result 503 final Callable callable = Executors.callable(new PrivilegedAction() { 509 Future future = e.submit(callable); 521 final Callable callable = 522 Executors.callable(new PrivilegedExceptionAction() { 528 Future future = e.submit(callable); 540 final Callable callable = 541 Executors.callable(new PrivilegedExceptionAction() { 547 Future future = e.submit(callable); [all...] |
/openjdk10/hotspot/test/compiler/compilercontrol/share/actions/ |
H A D | CompileAction.java | 90 Callable<?> callable = getCallableFor(executable); 93 callable.call();
|
/openjdk10/hotspot/test/compiler/whitebox/ |
H A D | SimpleTestCase.java | 48 private final Callable<Integer> callable; field in class:SimpleTestCase 51 private SimpleTestCase(Executable executable, Callable<Integer> callable, argument 54 this.callable = callable; 65 return callable;
|
/openjdk10/hotspot/test/compiler/codecache/stress/ |
H A D | Helper.java | 66 public static int callMethod(Callable<Integer> callable, int expected) { argument 70 result = callable.call();
|
/openjdk10/jdk/test/javax/swing/RepaintManager/6608456/ |
H A D | bug6608456.java | 146 static <T> T invokeAndWait(Callable<T> callable) throws Exception { argument 147 FutureTask<T> future = new FutureTask<T>(callable);
|
/openjdk10/jdk/test/java/lang/invoke/ |
H A D | InvokeGenericTest.java | 305 MethodHandle callable(List<Class<?>> params) { method in class:InvokeGenericTest 313 MethodHandle callable(Class<?>... params) { method in class:InvokeGenericTest 314 return callable(Arrays.asList(params)); 336 MethodHandle mh = callable(Object.class, String.class); 348 MethodHandle mh = callable(Object.class, Object.class); 360 MethodHandle mh = callable(Object.class, String.class); 394 MethodHandle target = callable(expect); 472 MethodHandle mh = callable(type.parameterList()); 507 MethodHandle mh = callable(Object.class, int.class);
|
/openjdk10/jdk/test/java/util/concurrent/ScheduledThreadPoolExecutor/ |
H A D | DelayOverflow.java | 65 pool.schedule(Executors.callable(r), 0, DAYS); 85 pool.schedule(Executors.callable(r), Long.MAX_VALUE, DAYS);
|
/openjdk10/jaxws/src/java.xml.bind/share/classes/com/sun/xml/internal/bind/v2/runtime/reflect/ |
H A D | TransducedAccessor.java | 294 final Callable callable = context.getObjectFromId(idref,acc.valueType); 295 if(callable==null) { 303 t = (TargetT)callable.call(); 304 } catch (SAXException e) {// from callable.call 306 } catch (RuntimeException e) {// from callable.call 308 } catch (Exception e) {// from callable.call 319 TargetT t = (TargetT)callable.call(); 327 } catch (SAXException e) {// from callable.call 329 } catch (RuntimeException e) {// from callable.call 331 } catch (Exception e) {// from callable [all...] |
/openjdk10/jdk/src/jdk.jconsole/share/classes/sun/tools/jconsole/inspector/ |
H A D | XOperations.java | 122 boolean callable = isCallable(operations[i].getSignature()); 123 if (callable) { 131 callable,
|
/openjdk10/jdk/src/java.desktop/macosx/classes/sun/lwawt/macosx/ |
H A D | LWCToolkit.java | 578 public static <T> T invokeAndWait(final Callable<T> callable, argument 580 final CallableWrapper<T> wrapper = new CallableWrapper<>(callable); 586 final Callable<T> callable; field in class:LWCToolkit.CallableWrapper 590 CallableWrapper(final Callable<T> callable) { argument 591 this.callable = callable; 597 object = callable.call();
|