javaGenerator method

  1. @override
void javaGenerator()
override

Implementation

@override
void javaGenerator() {
  detectErrorInJava(module.name, module.inputFile.pascalName,
      fileName: module.inputFile.name,
      absolutePath: module.inputFile.absolutePath);

  final file =
      File('${options.javaOutputPath}/${module.inputFile.javaPath()}');
  file.createSync(recursive: true);
  file.writeAsStringSync(ModuleGenerator.javaCode(module, options));

  final fileRegister = File(
      '${options.javaOutputPath}/${module.inputFile.javaNativeRegisterPath()}');
  fileRegister.createSync(recursive: true);
  fileRegister
      .writeAsStringSync(ModuleGenerator.javaRegisterCode(module, options));
}