# Uses of Class
serp.bytecode.SwitchInstruction

Packages that use SwitchInstruction
Package
Description
serp.bytecode
Bytecode Manipuation

## Uses of SwitchInstruction in serp.bytecode

Methods in serp.bytecode that return SwitchInstruction
Modifier and Type
Method
Description
`SwitchInstruction`
SwitchInstruction.`addCase(int match, Instruction target)`
Add a case to this switch.
`abstract SwitchInstruction`
SwitchInstruction.`addMatch(int match)`
`SwitchInstruction`
SwitchInstruction.`addTarget(Instruction target)`
Add a target to this switch.
`SwitchInstruction`
SwitchInstruction.`setCases(int[] matches, Instruction[] targets)`
Set the match-jumppt pairs for this switch.
`SwitchInstruction`
SwitchInstruction.`setDefaultOffset(int offset)`
Synonymous with `JumpInstruction.setOffset(int)`.
`SwitchInstruction`
SwitchInstruction.`setDefaultTarget(Instruction ins)`
Synonymous with `JumpInstruction.setTarget(serp.bytecode.Instruction)`.
`SwitchInstruction`
SwitchInstruction.`setMatches(int[] matches)`
`SwitchInstruction`
SwitchInstruction.`setTargets(Instruction[] targets)`
Set the jump points for this switch.