javaCode static method

String javaCode(
  1. UniAPIOptions options
)

Implementation

static String javaCode(UniAPIOptions options) {
  return CodeTemplate(children: [
    CommentUniAPI(),
    EmptyLine(),
    JavaPackage(null, options),
    EmptyLine(),
    JavaImport(fullClassName: 'java.util.HashMap'),
    JavaImport(fullClassName: 'java.util.Map'),
    EmptyLine(),
    OneLine(body: 'public class ${_genJavaClassName(options)} {'),
    OneLine(body: javaUniApiClassMethods),
    OneLine(body: '}')
  ]).build();
}