Class ClosedIdxExceptionEntry
- java.lang.Object
-
- org.benf.cfr.reader.entities.exceptions.ClosedIdxExceptionEntry
-
public class ClosedIdxExceptionEntry extends java.lang.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 Summary
Fields Modifier and Type Field Description private JavaRefTypeInstance
catchRefType
private short
catchType
private int
end
private int
handler
private int
priority
private int
start
-
Constructor Summary
Constructors Constructor Description ClosedIdxExceptionEntry(int start, int end, int handler, short catchType, int priority, JavaRefTypeInstance catchRefType)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ExceptionTableEntry
convertToRaw(java.util.Map<java.lang.Integer,java.lang.Integer> offsetByIdx)
JavaRefTypeInstance
getCatchRefType()
short
getCatchType()
int
getEnd()
int
getHandler()
int
getPriority()
int
getStart()
ClosedIdxExceptionEntry
withRange(int newStart, int newEnd)
-
-
-
Field Detail
-
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 Detail
-
ClosedIdxExceptionEntry
public ClosedIdxExceptionEntry(int start, int end, int handler, short catchType, int priority, JavaRefTypeInstance catchRefType)
-
-
Method Detail
-
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(java.util.Map<java.lang.Integer,java.lang.Integer> offsetByIdx)
-
-