Regions are held in a singly-linked-list by Candidate using the
Candidate#regionList field. The list is kept in sorted order by
resultStart.
| Modifier and Type | Field and Description |
|---|---|
| pack-priv int | length
Length of the region, always >= 1. |
| pack-priv Region | next
Next entry in the region linked list. |
| pack-priv int | resultStart
First position of this region in the result file blame is computing. |
| pack-priv int | sourceStart
First position in the |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| pack-priv Region | Returns: the same result region, but offset for a new source.the new source position. newSource)Copy the entire result region, but at a new source position. |
| pack-priv Region | |
| pack-priv void | slideAndShrink(int
number of elements to remove from the start of this region. d)Edit this region to remove the first |
| pack-priv Region | Returns: the first half of the region, at the new source.the new source position. newSource, int length of the new region. newLen)Split the region, assigning a new source position to the first half. |
| public String |
| length | back to summary |
|---|---|
| pack-priv int length Length of the region, always >= 1. | |
| next | back to summary |
|---|---|
| pack-priv Region next Next entry in the region linked list. | |
| resultStart | back to summary |
|---|---|
| pack-priv int resultStart First position of this region in the result file blame is computing. | |
| sourceStart | back to summary |
|---|---|
| pack-priv int sourceStart First position in the | |
| Region | back to summary |
|---|---|
| pack-priv Region(int rs, int ss, int len) | |
| copy | back to summary |
|---|---|
| pack-priv Region copy(int newSource) Copy the entire result region, but at a new source position.
| |
| deepCopy | back to summary |
|---|---|
| pack-priv Region deepCopy() | |
| slideAndShrink | back to summary |
|---|---|
| pack-priv void slideAndShrink(int d) Edit this region to remove the first
| |
| splitFirst | back to summary |
|---|---|
| pack-priv Region splitFirst(int newSource, int newLen) Split the region, assigning a new source position to the first half.
| |
| toString | back to summary |
|---|---|
| public String toString() Overrides java. Doc from java. Returns a string representation of the object.
Satisfying this method's contract implies a non- | |