public class TableSwitchBuilder extends Object
Modifier and Type | Class and Description |
---|---|
static class |
TableSwitchBuilder.ValuePair |
Constructor and Description |
---|
TableSwitchBuilder(CodeLocation defaultLocation,
int low,
int high)
Builds a lookup switch statement, specifying the default location
|
TableSwitchBuilder(int low,
int high)
Builds a lookup switch statement with no specified default location.
|
Modifier and Type | Method and 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 © 2017 JBoss, a division of Red Hat, Inc.. All Rights Reserved.