Class DisassembleParams


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

      • 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
        Suppressed Checkstyle violations:
        ParameterNumberCheck (10 lines)
    • Method Detail

      • 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