Class CodeReader


  • public final class CodeReader
    extends AttributeReader
    This attribute reader reads Code attributes from methods.
    • Method Detail

      • getMaxStack

        public int getMaxStack()
        Returns:
        the maximum stack size used by the code, in words
      • getMaxLocals

        public int getMaxLocals()
        Returns:
        the maximum local variable size used by the code, in words
      • getBytecodeLength

        public int getBytecodeLength()
        Returns:
        the length of the bytecode array, in bytes
      • getBytecode

        public byte[] getBytecode()
        Returns:
        the bytecode bytes
      • getRawHandlers

        public int[] getRawHandlers()
        Returns:
        the raw exception handler data, a flattened sequence of (startPC, endPC, catchClassIndex, catchPC) tuples