Skip to content

Commit

Permalink
explicit imports; fix problem of ambiguous Math reference
Browse files Browse the repository at this point in the history
  • Loading branch information
karlnapf committed Jun 7, 2016
1 parent ae0e85a commit bf15b80
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions examples/meta/generator/targets/java.json
@@ -1,9 +1,10 @@
{
"Program": "import org.shogun.*;\nimport org.jblas.*;\n\n${dependencies}class $programName {\nstatic {\nSystem.loadLibrary(\"modshogun\");\n}\n\npublic static void main(String argv[]) {\nmodshogun.init_shogun_with_defaults();\n\n$program$testing\n}\n}\n",
"Program": "import org.jblas.DoubleMatrix;\nimport org.jblas.FloatMatrix;\n\n${dependencies}class $programName {\nstatic {\nSystem.loadLibrary(\"modshogun\");\n}\n\npublic static void main(String argv[]) {\nmodshogun.init_shogun_with_defaults();\n\n$program$testing\n}\n}\n",
"Dependencies": {
"AllDependencies": "$enumDependencies\n\n",
"AllDependencies": "$interfacedClassDependencies\n$enumDependencies\n\n",
"InterfacedClassDependencies": "$classlist\n",
"EnumDependencies": "$enums",
"DependencyListElementClass": "$element",
"DependencyListElementClass": "import org.shogun.$element;",
"DependencyListElementEnum": "import static org.shogun.$type.$value;",
"DependencyListSeparator": "\n"
},
Expand All @@ -16,6 +17,7 @@
"Assign": "$name = $expr",
"Type": {
"Default": "$type",
"Math": "org.shogun.Math",
"bool": "boolean",
"int": "int",
"float": "float",
Expand Down

0 comments on commit bf15b80

Please sign in to comment.