Package io.karatelabs.js
Interface JavaInvokable
- All Superinterfaces:
Consumer<Object>,Function<Object,,Object> JavaCallable,Predicate<Object>,Runnable,Supplier<Object>
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
-
Method Summary
Methods inherited from interface io.karatelabs.js.JavaCallable
accept, apply, get, isExternal, run, test
-
Method Details
-
invoke
-
call
Description copied from interface:JavaCallableOverride with varargs for external Java client convenience. Callers can use: callable.call(ctx, arg1, arg2)- Specified by:
callin interfaceJavaCallable
-
isConstructable
default boolean isConstructable()Whether this callable can be invoked withnew. Default: false — only things that explicitly opt in (user-defined non-arrow functions,JsFunctionsubclasses, builtin constructor singletons, and theJsConstructormarker for Java-bridge types) report true. Used by the interpreter's construct path to throw a TypeError onnew <non-constructor>(...)per spec.
-