| Modifier and Type | Class and Description |
|---|---|
| public static class |
| Modifier and Type | Field and Description |
|---|---|
| private final AtomicReference | |
| private final CodeLocation | |
| private final List |
| Access | Constructor and Description |
|---|---|
| public | |
| public | LookupSwitchBuilder(final CodeLocation
The default location defaultLocation)Builds a lookup switch statement, specifying the default location |
| Modifier and Type | Method and Description |
|---|---|
| public AtomicReference | Returns: A reference to the BranchEnd that will be created.The value to add to the lookup table value)Adds a value to the table that is at a location yet to be written. |
| public LookupSwitchBuilder | add(int
The value to add to the lookup table value, final CodeLocation location)Adds a value to the table |
| public AtomicReference | |
| public CodeLocation | |
| public List |
| defaultBranchEnd | back to summary |
|---|---|
| private final AtomicReference<BranchEnd> defaultBranchEnd | |
| defaultLocation | back to summary |
|---|---|
| private final CodeLocation defaultLocation | |
| values | back to summary |
|---|---|
| private final List<LookupSwitchBuilder. | |
| LookupSwitchBuilder | back to summary |
|---|---|
| public LookupSwitchBuilder() Builds a lookup switch statement with no specified default location.
When the lookup switch is added to the code attribute a | |
| LookupSwitchBuilder | back to summary |
|---|---|
| public LookupSwitchBuilder(final CodeLocation defaultLocation) Builds a lookup switch statement, specifying the default location
| |
| add | back to summary |
|---|---|
| public AtomicReference Adds a value to the table that is at a location yet to be written. After this lookup switch has been written then the BranchEnd can be retrieved from the returned reference.
| |
| add | back to summary |
|---|---|
| public LookupSwitchBuilder add(int value, final CodeLocation location) Adds a value to the table
| |
| getDefaultBranchEnd | back to summary |
|---|---|
| public AtomicReference | |
| getDefaultLocation | back to summary |
|---|---|
| public CodeLocation getDefaultLocation() | |
| getValues | back to summary |
|---|---|
| public List | |
| Modifier and Type | Field and Description |
|---|---|
| private final AtomicReference | |
| private final CodeLocation | |
| private final int |
| Access | Constructor and Description |
|---|---|
| public | |
| public |
| Modifier and Type | Method and Description |
|---|---|
| public int | compareTo(final LookupSwitchBuilder.
the object to be compared. oImplements java. |
| public AtomicReference | |
| public CodeLocation | |
| public int |
| branchEnd | back to summary |
|---|---|
| private final AtomicReference<BranchEnd> branchEnd | |
| location | back to summary |
|---|---|
| private final CodeLocation location | |
| value | back to summary |
|---|---|
| private final int value | |
| ValuePair | back to summary |
|---|---|
| public ValuePair(final int value, final AtomicReference<BranchEnd> branchEnd) | |
| ValuePair | back to summary |
|---|---|
| public ValuePair(final int value, final CodeLocation location) | |
| compareTo | back to summary |
|---|---|
| public int compareTo(final LookupSwitchBuilder. Implements java. Doc from java. Compares this object with the specified object for order. Returns a negative integer, zero, or a positive integer as this object is less than, equal to, or greater than the specified object. The implementor must ensure The implementor must also ensure that the relation is transitive:
Finally, the implementor must ensure that
| |
| getBranchEnd | back to summary |
|---|---|
| public AtomicReference | |
| getLocation | back to summary |
|---|---|
| public CodeLocation getLocation() | |
| getValue | back to summary |
|---|---|
| public int getValue() | |