CatchHandlerList.
| Modifier and Type | Class and Description |
|---|---|
| public static class | CatchTable.
Entry in a catch list. |
| Modifier and Type | Field and Description |
|---|---|
| public static final CatchTable | EMPTY
|
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public int | compareTo(CatchTable
the object to be compared. other)Implements java. |
| public CatchTable. | Returns: non-null; element at that index>= 0, < size(); which indexGets the element at the given index. |
| public void | set(int
>= 0, < size(); which indexnon-null; the entry to set at nSets the entry at the given index. |
| EMPTY | back to summary |
|---|---|
| public static final CatchTable EMPTY
| |
| CatchTable | back to summary |
|---|---|
| public CatchTable(int size) Constructs an instance. All indices initially contain
| |
| compareTo | back to summary |
|---|---|
| public int compareTo(CatchTable other) 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
| |
| get | back to summary |
|---|---|
| public CatchTable. Gets the element at the given index. It is an error to call
this with the index for an element which was never set; if you
do that, this will throw
| |
| set | back to summary |
|---|---|
| public void set(int n, CatchTable. Sets the entry at the given index.
| |
| Modifier and Type | Field and Description |
|---|---|
| private final int | end
|
| private final CatchHandlerList | handlers
|
| private final int | start
|
| Access | Constructor and Description |
|---|---|
| public | Entry(int
>= 0; start address> start; end address (exclusive)non-null; list of catch handlersConstructs an instance. |
| Modifier and Type | Method and Description |
|---|---|
| public int | compareTo(CatchTable.
the object to be compared. otherImplements java. |
| public boolean | equals(Object
the reference object with which to compare. other)Overrides java. |
| public int | |
| public CatchHandlerList | |
| public int | |
| public int |
| end | back to summary |
|---|---|
| private final int end
| |
| handlers | back to summary |
|---|---|
| private final CatchHandlerList handlers
| |
| start | back to summary |
|---|---|
| private final int start
| |
| Entry | back to summary |
|---|---|
| public Entry(int start, int end, CatchHandlerList handlers) Constructs an instance.
| |
| compareTo | back to summary |
|---|---|
| public int compareTo(CatchTable. 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
| |
| equals | back to summary |
|---|---|
| public boolean equals(Object other) Overrides java. Doc from java. Indicates whether some other object is "equal to" this one.
The
An equivalence relation partitions the elements it operates on into equivalence classes; all the members of an equivalence class are equal to each other. Members of an equivalence class are substitutable for each other, at least for some purposes. | |
| getEnd | back to summary |
|---|---|
| public int getEnd() Gets the end address (exclusive).
| |
| getHandlers | back to summary |
|---|---|
| public CatchHandlerList getHandlers() Gets the handlers.
| |
| getStart | back to summary |
|---|---|
| public int getStart() Gets the start address.
| |
| hashCode | back to summary |
|---|---|
| public int hashCode() Overrides java. Doc from java. Returns a hash code value for this object. This method is
supported for the benefit of hash tables such as those provided by
The general contract of
| |