public class BytecodeLookupSwitch extends BytecodeSwitch
Bytecodes.LOOKUPSWITCH bytecodes.alignedBci, bci, stream| Constructor and Description |
|---|
BytecodeLookupSwitch(BytecodeStream stream,
int bci)
Constructor for a
BytecodeStream. |
| Modifier and Type | Method and Description |
|---|---|
int |
keyAt(int i)
Gets the key at
i'th switch target index. |
int |
numberOfCases()
Gets the number of switch targets.
|
int |
offsetAt(int i)
Gets the offset from the start of the switch instruction for the
i'th switch target. |
int |
size()
Gets the total size in bytes of the switch instruction.
|
bci, defaultOffset, defaultTarget, targetAtpublic BytecodeLookupSwitch(BytecodeStream stream, int bci)
BytecodeStream.stream - the BytecodeStream containing the switch instructionbci - the index in the stream of the switch instructionpublic int offsetAt(int i)
BytecodeSwitchi'th switch target.offsetAt in class BytecodeSwitchi - the switch target indexi'th switch targetpublic int keyAt(int i)
BytecodeSwitchi'th switch target index.keyAt in class BytecodeSwitchi - the switch target indexi'th switch target indexpublic int numberOfCases()
BytecodeSwitchnumberOfCases in class BytecodeSwitchpublic int size()
BytecodeSwitchsize in class BytecodeSwitch