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
abstract static class CodeIterator.Switcher extends CodeIterator.Branch
-
-
Field Summary
Fields Modifier and Type Field Description (package private) intdefaultByte(package private) intgap(package private) int[]offsets(package private) CodeIterator.Pointerspointers-
Fields inherited from class javassist.bytecode.CodeIterator.Branch
orgPos, pos
-
-
Constructor Summary
Constructors Constructor Description Switcher(int pos, int defaultByte, int[] offsets, CodeIterator.Pointers ptrs)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description (package private) voidadjustOffsets(int size, int nops)(package private) intdeltaSize()(package private) intgapChanged()(package private) voidshift(int where, int gapLength, boolean exclusive)(package private) abstract inttableSize()(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 Detail
-
gap
int gap
-
defaultByte
int defaultByte
-
offsets
int[] offsets
-
pointers
CodeIterator.Pointers pointers
-
-
Constructor Detail
-
Switcher
Switcher(int pos, int defaultByte, int[] offsets, CodeIterator.Pointers ptrs)
-
-
Method Detail
-
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
int write(int src, byte[] code, int dest, byte[] newcode) throws BadBytecode- Specified by:
writein classCodeIterator.Branch- Throws:
BadBytecode
-
write2
abstract int write2(int dest, byte[] newcode)
-
tableSize
abstract int tableSize()
-
adjustOffsets
void adjustOffsets(int size, int nops) throws BadBytecode- Throws:
BadBytecode
-
-