private static class ClassDump.InstructionIndex
extends java.lang.Object
toString()
, from the
bytecode offset of the instruction, after the whole class has been parsed. Indeed, due to
forward references, the index of an instruction might not be known when its offset is used.
Dumps use instruction indices instead of bytecode offsets in order to abstract away the low level byte code instruction representation details (e.g. an ldc vs. an ldc_w).
Modifier and Type | Field and Description |
---|---|
private int |
bytecodeOffset
An offset in bytes from the start of the bytecode of a method.
|
private ClassDump.MethodContext |
methodContext
The context to use to find the index from the bytecode offset.
|
Constructor and Description |
---|
InstructionIndex(int bytecodeOffset,
ClassDump.MethodContext methodContext) |
Modifier and Type | Method and Description |
---|---|
(package private) int |
getBytecodeOffset() |
java.lang.String |
toString() |
private final int bytecodeOffset
private final ClassDump.MethodContext methodContext
InstructionIndex(int bytecodeOffset, ClassDump.MethodContext methodContext)