Package jsinterop.base
Interface JsConstructorFn<T>
@JsFunction
public interface JsConstructorFn<T>
A JavaScript constructor function.
Note that this interface is not intended for manual implementation.
See Js.asConstructorFn(Class) to get an instance of JsConstructorFn from
a Class.
-
Method Summary
Modifier and TypeMethodDescriptionasClass()Returns this constructor as a Class instance.default TInvokes 'new' operator on this constructor.voidMost of the time you don't want to call this method but callconstruct(java.lang.Object...)instead since this is a constructor function.
-
Method Details
-
onInvoke
Most of the time you don't want to call this method but callconstruct(java.lang.Object...)instead since this is a constructor function. -
construct
Invokes 'new' operator on this constructor. -
asClass
Returns this constructor as a Class instance.
-