-
Notifications
You must be signed in to change notification settings - Fork 0
Class creation
hydrophobis edited this page Mar 25, 2025
·
2 revisions
- Emits the Java class file magic number (
0xCAFEBABE). - Sets the class file version to Java 8 (
minor_version = 0,major_version = 52).
- Sets the access flags to the given flag integer.
- References the class and its superclass (
this_classandsuper_class).
- Starts a code attribute with the method's name and stack/locals limits.
- Begins bytecode emission with
bytecode_start().
- Ends bytecode emission with
bytecode_end(). - Emits
0for exception table length and attributes count. - Ends the attribute with
attribute_end().