Package javassist.bytecode
Class CodeIterator.Switcher
java.lang.Object
javassist.bytecode.CodeIterator.Branch
javassist.bytecode.CodeIterator.Switcher
- Direct Known Subclasses:
CodeIterator.Lookup,CodeIterator.Table
- Enclosing class:
- CodeIterator
-
Field Summary
FieldsModifier and TypeFieldDescription(package private) int(package private) int(package private) int[](package private) CodeIterator.PointersFields inherited from class javassist.bytecode.CodeIterator.Branch
orgPos, pos -
Constructor Summary
ConstructorsConstructorDescriptionSwitcher(int pos, int defaultByte, int[] offsets, CodeIterator.Pointers ptrs) -
Method Summary
Modifier and TypeMethodDescription(package private) voidadjustOffsets(int size, int nops) (package private) int(package private) int(package private) voidshift(int where, int gapLength, boolean exclusive) (package private) abstract int(package private) intwrite(int src, byte[] code, int dest, byte[] newcode) (package private) abstract intwrite2(int dest, byte[] newcode) Methods inherited from class javassist.bytecode.CodeIterator.Branch
expanded, shiftOffset
-
Field Details
-
gap
int gap -
defaultByte
int defaultByte -
offsets
int[] offsets -
pointers
CodeIterator.Pointers pointers
-
-
Constructor Details
-
Switcher
Switcher(int pos, int defaultByte, int[] offsets, CodeIterator.Pointers ptrs)
-
-
Method Details
-
shift
void shift(int where, int gapLength, boolean exclusive) - Overrides:
shiftin classCodeIterator.Branch
-
gapChanged
int gapChanged()- Overrides:
gapChangedin classCodeIterator.Branch
-
deltaSize
int deltaSize()- Overrides:
deltaSizein classCodeIterator.Branch
-
write
- Specified by:
writein classCodeIterator.Branch- Throws:
BadBytecode
-
write2
abstract int write2(int dest, byte[] newcode) -
tableSize
abstract int tableSize() -
adjustOffsets
- Throws:
BadBytecode
-