Class 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 Detail

      • AsmProgram

        public AsmProgram​(byte... bytes)
        Constructor.
        Parameters:
        bytes - Bytes.
    • 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.