Class BytecodeScanner


  • public class BytecodeScanner
    extends java.lang.Object
    Scan the raw bytecodes of a method. This is useful in order to find out quickly whether or not a method uses particular instructions.
    Author:
    David Hovemeyer
    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
      static interface  BytecodeScanner.Callback
      Callback interface to report scanned instructions.
    • Constructor Summary

      Constructors 
      Constructor Description
      BytecodeScanner()  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void scan​(byte[] instructionList, BytecodeScanner.Callback callback)
      Scan the raw bytecodes of a method.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • BytecodeScanner

        public BytecodeScanner()
    • Method Detail

      • scan

        public void scan​(byte[] instructionList,
                         BytecodeScanner.Callback callback)
        Scan the raw bytecodes of a method.
        Parameters:
        instructionList - the bytecodes
        callback - the callback object