Searched refs:callable (Results 1 - 25 of 38) sorted by relevance

12

/openjdk10/nashorn/test/script/basic/
H A Dinterfaces.js43 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 DBoundCallable.java32 * 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 DBootstrap.java147 * 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 DBoundCallableLinker.java43 * 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 Dbug6547087.java54 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 DFilterNonMembersToObtainFunctionDescriptorTest.java32 <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 DScheduledExecutorService.java113 * @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 DFutureTask.java101 /** 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 DExecutors.java404 * @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 DScheduledThreadPoolExecutor.java236 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 DConstantGettersTransitionsTest.java88 private final Callable<Integer> callable; field in class:ConstantGettersTransitionsTest.ConstantGettersTestCase
97 return callable;
108 this.callable = LevelTransitionTest.Helper.getCallable(new TrivialMethods(), name);
H A DLevelTransitionTest.java213 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 DAsyncResponseImpl.java53 private final Runnable callable; field in class:AsyncResponseImpl
66 this.callable = runnable;
75 callable.run();
/openjdk10/jdk/test/java/util/concurrent/Executors/
H A DThrows.java31 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 DExecutorsTest.java234 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 DForkJoinPoolTest.java461 * 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 DCompileAction.java90 Callable<?> callable = getCallableFor(executable);
93 callable.call();
/openjdk10/hotspot/test/compiler/whitebox/
H A DSimpleTestCase.java48 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 DHelper.java66 public static int callMethod(Callable<Integer> callable, int expected) { argument
70 result = callable.call();
/openjdk10/jdk/test/javax/swing/RepaintManager/6608456/
H A Dbug6608456.java146 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 DInvokeGenericTest.java305 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 DDelayOverflow.java65 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 DTransducedAccessor.java294 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 DXOperations.java122 boolean callable = isCallable(operations[i].getSignature());
123 if (callable) {
131 callable,
/openjdk10/jdk/src/java.desktop/macosx/classes/sun/lwawt/macosx/
H A DLWCToolkit.java578 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();

Completed in 231 milliseconds

12