public interface JsConstructorFn<T>
Note that this interface is not intented for manual implementation.
| Modifier and Type | Method and Description |
|---|---|
default java.lang.Class<T> |
asClass()
Returns this constructor as a Class instance.
|
default T |
construct(java.lang.Object... args)
Invokes 'new' operator on this constructor.
|
static <T> JsConstructorFn<T> |
of(java.lang.Class<T> clazz) |
void |
onInvoke(java.lang.Object... args)
Most of the time you don't want to call this method but call
construct(java.lang.Object...) instead since
this is a constructor function. |
static <T> JsConstructorFn<T> of(java.lang.Class<T> clazz)
void onInvoke(java.lang.Object... args)
construct(java.lang.Object...) instead since
this is a constructor function.default T construct(java.lang.Object... args)
default java.lang.Class<T> asClass()