Class ClosedIdxExceptionEntry

java.lang.Object
org.benf.cfr.reader.entities.exceptions.ClosedIdxExceptionEntry

public class ClosedIdxExceptionEntry extends Object
Sanitised version of Exception table entry, where we use instruction idx, rather than opcode, and the exceptions are CLOSED, rather than half open.

We preprocess exceptions in terms of this where possible, as it's simpler.

  • Field Details

    • start

      private final int start
    • end

      private final int end
    • handler

      private final int handler
    • catchType

      private final short catchType
    • priority

      private final int priority
    • catchRefType

      private final JavaRefTypeInstance catchRefType
  • Constructor Details

    • ClosedIdxExceptionEntry

      public ClosedIdxExceptionEntry(int start, int end, int handler, short catchType, int priority, JavaRefTypeInstance catchRefType)
  • Method Details

    • getStart

      public int getStart()
    • getEnd

      public int getEnd()
    • getHandler

      public int getHandler()
    • getCatchType

      public short getCatchType()
    • getPriority

      public int getPriority()
    • getCatchRefType

      public JavaRefTypeInstance getCatchRefType()
    • withRange

      public ClosedIdxExceptionEntry withRange(int newStart, int newEnd)
    • convertToRaw

      public ExceptionTableEntry convertToRaw(Map<Integer,Integer> offsetByIdx)