org.apache.bcel.generic
public final class SWITCH extends Object implements CompoundInstruction
Version: $Id: SWITCH.java 386056 2006-03-15 11:31:56Z tcurdt $
Field Summary | |
---|---|
Select | instruction |
int[] | match |
int | match_length |
InstructionHandle[] | targets |
Constructor Summary | |
---|---|
SWITCH(int[] match, InstructionHandle[] targets, InstructionHandle target, int max_gap)
Template for switch() constructs. | |
SWITCH(int[] match, InstructionHandle[] targets, InstructionHandle target) |
Method Summary | |
---|---|
void | fillup(int max_gap, InstructionHandle target) |
Instruction | getInstruction() |
InstructionList | getInstructionList() |
boolean | matchIsOrdered(int max_gap) |
void | sort(int l, int r)
Sort match and targets array with QuickSort. |
Parameters: match array of match values (case 2: ... case 7: ..., etc.) targets the instructions to be branched to for each case target the default target max_gap maximum gap that may between case branches
Returns: match is sorted in ascending order with no gap bigger than max_gap?