public class TableSwitchBuilder extends Object
| Modifier and Type | Class | Description |
|---|---|---|
static class |
TableSwitchBuilder.ValuePair |
| Constructor | Description |
|---|---|
TableSwitchBuilder(int low,
int high) |
Builds a lookup switch statement with no specified default location.
|
TableSwitchBuilder(CodeLocation defaultLocation,
int low,
int high) |
Builds a lookup switch statement, specifying the default location
|
| Modifier and Type | Method | Description |
|---|---|---|
AtomicReference<BranchEnd> |
add() |
Adds a value to the table that is at a location yet to be written.
|
TableSwitchBuilder |
add(CodeLocation location) |
Adds a value to the table
|
AtomicReference<BranchEnd> |
getDefaultBranchEnd() |
|
CodeLocation |
getDefaultLocation() |
|
int |
getHigh() |
|
int |
getLow() |
|
List<TableSwitchBuilder.ValuePair> |
getValues() |
public TableSwitchBuilder(int low,
int high)
BranchEnd will be returned that can be used to
set the location.low - high - public TableSwitchBuilder(CodeLocation defaultLocation, int low, int high)
defaultLocation - The default locationlow - high - public AtomicReference<BranchEnd> add()
public TableSwitchBuilder add(CodeLocation location)
public CodeLocation getDefaultLocation()
public AtomicReference<BranchEnd> getDefaultBranchEnd()
public List<TableSwitchBuilder.ValuePair> getValues()
public int getLow()
public int getHigh()
Copyright © 2018. All rights reserved.