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) int
defaultByte
(package private) int
gap
(package private) int[]
offsets
(package private) CodeIterator.Pointers
pointers
-
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) void
adjustOffsets(int size, int nops)
(package private) int
deltaSize()
(package private) int
gapChanged()
(package private) void
shift(int where, int gapLength, boolean exclusive)
(package private) abstract int
tableSize()
(package private) int
write(int src, byte[] code, int dest, byte[] newcode)
(package private) abstract int
write2(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:
shift
in classCodeIterator.Branch
-
gapChanged
int gapChanged()
- Overrides:
gapChanged
in classCodeIterator.Branch
-
deltaSize
int deltaSize()
- Overrides:
deltaSize
in classCodeIterator.Branch
-
write
int write(int src, byte[] code, int dest, byte[] newcode) throws BadBytecode
- Specified by:
write
in 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
-
-