Class AsmProgram
- java.lang.Object
-
- org.eolang.jeo.representation.asm.AsmProgram
-
public final class AsmProgram extends Object
ASM bytecode parser. We used to use the Visitor pattern, but it's too verbose and not very readable. So, we decided to switch to a Tree-API-based approach. You can read more about different approaches right here: https://asm.ow2.io/asm4-guide.pdf The recent version with the Visitor pattern is still available in the history: github- Since:
- 0.6
-
-
Constructor Summary
Constructors Constructor Description AsmProgram(byte... bytes)
Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description BytecodeProgram
bytecode()
Convert to bytecode.BytecodeProgram
bytecode(int flags)
Convert to bytecode.
-
-
-
Method Detail
-
bytecode
public BytecodeProgram bytecode()
Convert to bytecode.- Returns:
- Bytecode.
-
bytecode
public BytecodeProgram bytecode(int flags)
Convert to bytecode.- Parameters:
flags
- Flags.- Returns:
- Bytecode.
-
-