Storyyeller / Krakatau

Java decompiler, assembler, and disassembler
GNU General Public License v3.0
1.95k stars 219 forks source link

Usage of other classes #174

Closed Dmunch04 closed 4 years ago

Dmunch04 commented 4 years ago

As seen in Jasmin's example of how to use classes from another file:

Does it work the same way in Krakatau? Like just use the path of the file, fx. utils/helpers/HelperClass.

And another question real quick; how would I be able to create class fields, that is not a default data type? So it's a custom class, such as java/lang/String, etc.

Janmm14 commented 4 years ago

Should work similar in krakatau. And for fields see the documentation: https://github.com/Storyyeller/Krakatau/blob/master/Documentation/assembler.txt#L56

Storyyeller commented 4 years ago

Janmm14 is correct.

Krakatau is mostly a superset of Jasmin in terms of functionality (there are some minor syntax differences compared to Jasmin).