The disassembler API allows you to introspect and manipulate disassemblers in slicer. slicer offers several disassemblers/decompilers out of the box, but this API makes it possible to add custom ones via a script.
All disassembler operations are done via a DisassemblerContext, which you can once again access on the context.
Every disassembler needs an ID and a class function that disassembles a class file byte array into a string representation.
Optionally, a method function for disassembling a single method and human-readable label can also be supplied.
A disassembler can request class files from the workspace based on their internal names using the supplied source function.