Class ThrowManager


  • public class ThrowManager
    extends Object
    Utility methods for dealing with traps.
    • Constructor Detail

      • ThrowManager

        public ThrowManager()
    • Method Detail

      • getNullPointerExceptionThrower

        public static Stmt getNullPointerExceptionThrower​(JimpleBody b)
        Iterate through the statements in b (starting at the end), returning the last instance of the following pattern: r928 = new java.lang.NullPointerException; specialinvoke r928.""(); throw r928; Creates if necessary.
      • getNullPointerExceptionThrower

        public static Stmt getNullPointerExceptionThrower​(ShimpleBody b)
        Iterate through the statements in b (starting at the end), returning the last instance of the following pattern: r928 = new java.lang.NullPointerException; specialinvoke r928.""(); throw r928; Creates if necessary.