Module JUnparse

module JUnparse: sig .. end

Unparsing (compilation) of either high or low level class representations into class files.


Provided constants are kept unchanged. Missing constant are added at the end of the constant pool if needed.

val unparse_class_low_level : 'a JLib.IO.output -> JClassLow.jclass -> unit

Unparses a class to a file. See JInstruction.code2opcodes for more information.

val unparse_class : 'a JLib.IO.output -> JCode.jcode JClass.interface_or_class -> unit

Unparses a class to a file. See JInstruction.code2opcodes for more information.

val unparse_attribute_to_strings : JBasics.constant JLib.DynArray.t -> JClassLow.attribute -> string * string

Unparses an attribute to a couple (name, content) where name is the code-name of the attribute and content as encoded in a .class file.