Top Description Fields Constructors Methods
org.codehaus.commons.compiler.util

public final Class Disassembler

extends Object
Class Inheritance
Imports
java.io.ByteArrayInputStream, .InputStream, org.codehaus.commons.nullanalysis.Nullable

Generates human-readable Java assembler code from Java bytecode.

Field Summary

Modifier and TypeField and Description
private static Object

Constructor Summary

AccessConstructor and Description
private

Method Summary

Modifier and TypeMethod and Description
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 to System.out.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

disassemblerInstanceback to summary
private static Object disassemblerInstance
Annotations
@Nullable

Constructor Detail

Disassemblerback to summary
private Disassembler()

Method Detail

disassembleToStdoutback to summary
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 to System.out.

Prints an error message to System.err if that class cannot be loaded through the classpath.

System variable disasm.verbose controls whether the disassembler operates in "verbose" mode. The default is false.