| java.lang.Object gnu.bytecode.SwitchState
SwitchState | public class SwitchState (Code) | | Maintains the state for generating a switch statement.
|
defaultLabel | Label defaultLabel(Code) | | The location to jump to if none of the cases match.
|
labels | Label[] labels(Code) | | The case locations, in the same order as values.
|
maxValue | int maxValue(Code) | | The largest case value, so far.
|
minValue | int minValue(Code) | | The smallest case value, so far.
|
numCases | int numCases(Code) | | The number of cases (not including the default case).
|
values | int[] values(Code) | | The case values, in numerical order (in values[0..numCases-1]).
|
addCase | public boolean addCase(int value, CodeAttr code)(Code) | | Emit a new case, for the given value, whose label is here.
|
addCase | public boolean addCase(int value, Label label, CodeAttr code)(Code) | | Add a new case.
Parameters: value - the case value to match against at run-time Parameters: label - the location to go to if the value matches Parameters: code - the CodeAttr of the Method we are generating code for true on success; false if value duplicates an existing value |
finish | public void finish(CodeAttr code)(Code) | | Handle the end of the switch statement.
Assume the case value is on the stack; go to the matching case label.
|
getMaxValue | public int getMaxValue()(Code) | | |
|
|