nitc :: JavaFile :: defaultinit
nitc $ JavaFile :: add_to_jar
Isself
a Java file to include in the JAR archive?
nitc $ JavaFile :: makefile_rule_content
The content of the rule in the makenitc $ JavaFile :: makefile_rule_name
The name of the target in the Makefilenitc :: ExternFile :: _filename
Filename relative to the nit-compile foldernitc :: ExternFile :: _pkgconfigs
Additional libraries needed for the compilationnitc :: ExternFile :: add_to_jar
Isself
a Java file to include in the JAR archive?
core :: Object :: class_factory
Implementation used byget_class
to create the specific class.
nitc :: ExternFile :: compile
Compile this source filenitc :: ExternFile :: compiles_to_o_file
core :: Object :: defaultinit
nitc :: ExternFile :: defaultinit
nitc :: JavaFile :: defaultinit
nitc :: ExternFile :: filename=
Filename relative to the nit-compile foldercore :: Object :: is_same_instance
Return true ifself
and other
are the same instance (i.e. same identity).
core :: Object :: is_same_serialized
Isself
the same as other
in a serialization context?
core :: Object :: is_same_type
Return true ifself
and other
have the same dynamic type.
nitc :: ExternFile :: makefile_rule_content
The content of the rule in the makenitc :: ExternFile :: makefile_rule_name
The name of the target in the Makefilecore :: Object :: native_class_name
The class name of the object in CString format.core :: Object :: output_class_name
Display class name on stdout (debug only).nitc :: ExternFile :: pkgconfigs
Additional libraries needed for the compilationnitc :: ExternFile :: pkgconfigs=
Additional libraries needed for the compilation
# A generated Java source file, represent the corresponding Makefile rules
class JavaFile
super ExternFile
# Full Java class name: package and class
fun full_name: String do return filename.basename(".java")
redef fun makefile_rule_name do return full_name.replace(".", "/") + ".class"
redef fun makefile_rule_content do return "javac {filename} -d ."
redef fun add_to_jar do return true
end
src/ffi/java.nit:424,1--434,3