public final class SWITCH extends Object implements CompoundInstruction
| Constructor and Description |
|---|
SWITCH(int[] match,
InstructionHandle[] targets,
InstructionHandle target) |
SWITCH(int[] match,
InstructionHandle[] targets,
InstructionHandle target,
int maxGap)
Template for switch() constructs.
|
| Modifier and Type | Method and Description |
|---|---|
Instruction |
getInstruction() |
InstructionList |
getInstructionList() |
public SWITCH(int[] match, InstructionHandle[] targets, InstructionHandle target)
public SWITCH(int[] match, InstructionHandle[] targets, InstructionHandle target, int maxGap)
match - array of match values (case 2: ... case 7: ..., etc.)targets - the instructions to be branched to for each casetarget - the default targetmaxGap - maximum gap that may between case branchespublic Instruction getInstruction()
public InstructionList getInstructionList()
getInstructionList in interface CompoundInstructionCopyright © 2004–2022 The Apache Software Foundation. All rights reserved.