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, Format format) Constructor. -
Method Summary
-
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, Format format) Constructor.- Parameters:
mode- Disassemble modelistings- Whether to include listings in the outputpretty- Whether to pretty-print the outputcomments- Whether to include comments in the outputformat- Format for disassembling
-
-
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
-
format
Returns the format for disassembling.- Returns:
- Format object with the properties set for disassembly.
-