Class DisassembleParams

java.lang.Object
org.eolang.jeo.representation.asm.DisassembleParams

public final class DisassembleParams extends Object
Parameters for disassembling bytecode.
Since:
0.11.0
  • Constructor Details

    • DisassembleParams

      public DisassembleParams()
      Constructor with default parameters.

      Uses DEBUG mode, listings disabled, and pretty-printing enabled.

    • DisassembleParams

      public DisassembleParams(DisassembleMode mode, boolean listings, boolean pretty, boolean comments)
      Constructor.
      Parameters:
      mode - Disassemble mode
      listings - Whether to include listings in the output
      pretty - Whether to pretty-print the output
      comments - Whether to include comments in the output
  • Method Details

    • asmMode

      public int asmMode()
      Disassemble mode.
      Returns:
      Disassemble mode as ASM ClassReader options
    • includeListings

      public boolean includeListings()
      Whether to include listings in the output.
      Returns:
      True if listings should be included, false otherwise
    • prettyPrint

      public boolean prettyPrint()
      Whether to pretty-print the output.
      Returns:
      True if pretty-printing is enabled, false otherwise
    • includeComments

      public boolean includeComments()
      Whether to include comments in the output.
      Returns:
      True if comments should be included, false otherwise