# All importations
var imports = new HashSet[String]
- imports.add "import mnit_android\n"
- for jclass in model.classes do
+ imports.add "import java\n"
+ for key, jclass in model.classes do
for import_ in jclass.imports do imports.add "import android::{import_}\n"
end
file_out.write imports.join("\n")
+ file_out.write "\n"
- for jclass in model.classes do
+ for key, jclass in model.classes do
file_out.write gen_class_header(jclass.class_type)
#
# These may also be keywords in Java, but there they would be used capitalized.
private var nit_keywords: Array[String] = ["abort", "abstract", "and", "assert",
- "break", "class", "continue", "do", "else", "end", "enum", "extern", "implies",
- "import", "init", "interface", "intrude", "if", "in", "is", "isa", "for", "label",
+ "break", "class", "continue", "do", "else", "end", "enum", "extern", "false", "implies",
+ "import", "init", "interface", "intrude", "if", "in", "is", "isa", "isset", "for", "label",
"loop", "module", "new", "not", "null", "nullable", "or", "package", "private",
- "protected", "public", "return", "self", "super", "then", "type", "var", "while"]
+ "protected", "public", "return", "self", "super", "then", "true", "type", "var", "while"]
end
redef class String