javaCode static method
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();
}