gn2bp: Create `java_genrule` from java actions

* Actions whose outputs are "srcjar" and ".java" files only are converted into a `java_genrule` instead of `cc_genrule`. The only exception to this is the jni_registration_module which produces a header file and a srcjar, it's kept a cc_genrule but deep-copied by create_java_module to have a java_genrule copy.

Test: None
Change-Id: I07270c9a7984a8fd26a53ca614287a3a646d65d6
2 files changed