Class DisassembleParams
java.lang.Object
org.eolang.jeo.representation.asm.DisassembleParams
Parameters for disassembling bytecode.
- Since:
- 0.11.0
-
Constructor Summary
ConstructorsConstructorDescriptionConstructor with default parameters.DisassembleParams
(DisassembleMode mode, boolean listings, boolean pretty, boolean comments) Constructor. -
Method Summary
Modifier and TypeMethodDescriptionint
asmMode()
Disassemble mode.boolean
Whether to include comments in the output.boolean
Whether to include listings in the output.boolean
Whether to pretty-print the output.
-
Constructor Details
-
DisassembleParams
public DisassembleParams()Constructor with default parameters.Uses DEBUG mode, listings disabled, and pretty-printing enabled.
-
DisassembleParams
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
-
-
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
-