Class Handler


  • public class Handler
    extends java.lang.Object
    Representation for a catch handler.
    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
      private static class  Handler.Comp  
      private static class  Handler.Resort  
    • Field Summary

      Fields 
      Modifier and Type Field Description
      BasicBlock catchBB
      catch handler's entry point
      private static Handler.Comp comp  
      int from
      Source offset in method's instruction list
      int pos
      the position of the corresponding entry in the unwoven exception table
      private static Handler.Resort resort  
      int to
      End offset in method's instruction list
      java.lang.String type
      Exception type
    • Constructor Summary

      Constructors 
      Constructor Description
      Handler​(int aFrom, int aTo, java.lang.String aType, BasicBlock aCatchBB, int pos)  
      Handler​(int aFrom, int aTo, Handler h)  
    • Field Detail

      • from

        public int from
        Source offset in method's instruction list
      • to

        public int to
        End offset in method's instruction list
      • type

        public java.lang.String type
        Exception type
      • catchBB

        public BasicBlock catchBB
        catch handler's entry point
      • pos

        public int pos
        the position of the corresponding entry in the unwoven exception table
    • Constructor Detail

      • Handler

        public Handler​(int aFrom,
                       int aTo,
                       Handler h)
      • Handler

        public Handler​(int aFrom,
                       int aTo,
                       java.lang.String aType,
                       BasicBlock aCatchBB,
                       int pos)
    • Method Detail

      • comparePos

        private int comparePos​(Handler h)
      • consolidate

        public static java.util.ArrayList<Handler> consolidate​(java.util.ArrayList<Handler> list)
      • startComparator

        public static java.util.Comparator<Handler> startComparator()
        return a Comparator that orders the handlers by start position