Class SwitchTable
java.lang.Object
org.openjdk.asmtools.jasm.SwitchTable
tableswitch
invalid input: '<'0-3 byte pad>
defaultbyte1
defaultbyte2
defaultbyte3
defaultbyte4
lowbyte1
lowbyte2
lowbyte3
lowbyte4
highbyte1
highbyte2
highbyte3
highbyte4
jump offsets...
tableswitch
default: u4
low: u4
high: u4
jump offsets:
...
or
lookupswitch
invalid input: '<'0-3 byte pad>
defaultbyte1
defaultbyte2
defaultbyte3
defaultbyte4
npairs1
npairs2
npairs3
npairs4
match-offset pairs...
lookupswitch
default: u4
match_count: u4
match_1:
match_2:
...
match_n:
-
Field Summary
FieldsModifier and TypeFieldDescription(package private) Indexer(package private) JasmEnvironment(package private) int(package private) int(package private) int(package private) int(package private) Indexer[] -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription(package private) void(package private) intcalcLookupSwitch(int pc) (package private) intrecalcTableSwitch(int pc) (package private) void(package private) void
-
Field Details
-
defLabel
Indexer defLabel -
labels
-
keys
-
resLabels
Indexer[] resLabels -
high
int high -
low
int low -
pc
int pc -
pad
int pad -
environment
JasmEnvironment environment
-
-
Constructor Details
-
SwitchTable
SwitchTable(JasmEnvironment environment)
-
-
Method Details
-
addEntry
-
calcLookupSwitch
int calcLookupSwitch(int pc) -
writeLookupSwitch
- Throws:
IOException
-
recalcTableSwitch
int recalcTableSwitch(int pc) -
writeTableSwitch
- Throws:
IOException
-