fn runtime_root_init_method(&mut self, module: &JModule) {
    let num_ref_fields = module.ref_fields().len();
    if num_ref_fields > 0 {
      self.fmt.push("public void __init()");
      self.fmt.open_block();
      self.fmt.push("this.__init(null");
      for _ in 1..num_ref_fields {
        self.fmt.push(", null");
      }
      self.fmt.terminate_line(");");
      self.fmt.close_block();
    }
  }
// This `init` is useful if a root module contains ref fields.
// In this case, these fields are treated as normal fields.
This `init` is useful if a root module contains ref fields.
In this case, these fields are treated as normal fields.
This ` init ` is useful if a root module contains ref fields . In this case these fields are treated as normal fields .
fn runtime_root_init_method(&mut self, module: &JModule) {
    let num_ref_fields = module.ref_fields().len();
    if num_ref_fields > 0 {
      self.fmt.push("public void __init()");
      self.fmt.open_block();
      self.fmt.push("this.__init(null");
      for _ in 1..num_ref_fields {
        self.fmt.push(", null");
      }
      self.fmt.terminate_line(");");
      self.fmt.close_block();
    }
  }
fn runtime_root_init_method ( & mut self , module : & JModule ) { let num_ref_fields = module . ref_fields ( ) . len ( ) ; if num_ref_fields > 0 { self . fmt . push ( " " ) ; self . fmt . open_block ( ) ; self . fmt . push ( " " ) ; for _ in 1 .. num_ref_fields { self . fmt . push ( " " ) ; } self . fmt . terminate_line ( " " ) ; self . fmt . close_block ( ) ; } }
This `init` is useful if a root module contains ref fields.
This ` init ` is useful if a root module contains ref fields .
&mut self
module
&JModule
&mut self
module
&JModule