pub fn gen_trait_bridge(
trait_name: &str,
prefix: &str,
trait_methods: &[(&str, &str)],
has_super_trait: bool,
) -> StringExpand description
Generate all trait bridge code for a single [[trait_bridges]] entry.
Returns Java source code as a String.
has_super_trait: when true, the C vtable includes Plugin lifecycle slots
(name_fn, version_fn, initialize_fn, shutdown_fn) and the bridge emits matching
upcall stubs. When false, only the trait-method slots are emitted, matching
the Rust-side vtable layout exactly.