Class Disassembler
java.lang.Object
org.codehaus.commons.compiler.util.Disassembler
Generates human-readable Java assembler code from Java bytecode.
-
Method Summary
Modifier and TypeMethodDescriptionstatic voiddisassembleToStdout(byte[] contents) Loads a "de.unkrig.jdisasm.Disassembler" through reflection (to avoid a compile-time dependency) and uses it to disassemble the given bytes toSystem.out.
-
Method Details
-
disassembleToStdout
public static void disassembleToStdout(byte[] contents) Loads a "de.unkrig.jdisasm.Disassembler" through reflection (to avoid a compile-time dependency) and uses it to disassemble the given bytes toSystem.out.Prints an error message to
System.errif that class cannot be loaded through the classpath.System variable
disasm.verbosecontrols whether the disassembler operates in "verbose" mode. The default isfalse.
-