ifclass VF1
static AutoCloseable mapMethodLike dm_vmBus_onMessage_q(fS msg, final VF1 onMessage) {
final DynModule m = dm_current_mandatory();
ret dm_vmBus_onMessage(msg, voidfunc(final A a) {
switch to m.q();
callF(onMessage, a);
});
}
endif
static AutoCloseable mapMethodLike dm_vmBus_onMessage_q(fS msg, final IVF1 onMessage) {
final DynModule m = dm_current_mandatory();
ret dm_vmBus_onMessage(msg, voidfunc(final A a) {
switch to m.q();
callF(onMessage, a);
});
}
static AutoCloseable mapMethodLike dm_vmBus_onMessage_q(fS msg, final IVF2 onMessage) {
final DynModule m = dm_current_mandatory();
ret dm_vmBus_onMessage(msg, voidfunc(A a, B b) {
switch to m.q();
callF(onMessage, a, b);
});
}
static AutoCloseable mapMethodLike dm_vmBus_onMessage_q(fS msg, final IVF3 onMessage) {
DynModule m = dm_current_mandatory();
ret dm_vmBus_onMessage(msg, voidfunc(A a, B b, C c) {
switch to m.q();
callF(onMessage, a, b, c);
});
}
ifclass VF2
static AutoCloseable dm_vmBus_onMessage_q(fS msg, final VF2 onMessage) {
final DynModule m = dm_current_mandatory();
ret dm_vmBus_onMessage(msg, voidfunc(final A a, final B b) {
switch to m.q();
callF(onMessage, a, b);
});
}
endif
ifclass VF3
static AutoCloseable dm_vmBus_onMessage_q(fS msg, final VF3 onMessage) {
final DynModule m = dm_current_mandatory();
ret dm_vmBus_onMessage(msg, voidfunc(final A a, final B b, final C c) {
switch to m.q();
callF(onMessage, a, b, c);
});
}
endif
ifclass VF4
static AutoCloseable dm_vmBus_onMessage_q(fS msg, final VF4 onMessage) {
final DynModule m = dm_current_mandatory();
ret dm_vmBus_onMessage(msg, voidfunc(final A a, final B b, final C c, D d) {
switch to m.q();
callF(onMessage, a, b, c, d);
});
}
endif
static AutoCloseable dm_vmBus_onMessage_q(fS msg, final Runnable onMessage) {
final DynModule m = dm_current_mandatory();
ret dm_vmBus_onMessage(msg, voidfunc(final A a) {
switch to m.q();
callF(onMessage);
});
}