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 Summary
Constructors Constructor Description DisassembleParams()
Constructor with default parameters.DisassembleParams(DisassembleMode mode, boolean listings, boolean pretty, boolean comments)
Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
asmMode()
Disassemble mode.boolean
includeComments()
Whether to include comments in the output.boolean
includeListings()
Whether to include listings in the output.boolean
prettyPrint()
Whether to pretty-print the output.
-
-
-
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 modelistings
- Whether to include listings in the outputpretty
- Whether to pretty-print the outputcomments
- 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
-
-