| Modifier and Type | Field and Description |
|---|---|
int |
original
Position in the original sequence.
|
PathNode |
prev
The previous node in the path.
|
int |
revised
Position in the revised sequence.
|
| Constructor and Description |
|---|
PathNode(int original,
int revised,
PathNode prev)
Concatenates a new path node with an existing diffpath.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
isBootstrap()
Is this a bootstrap node?
|
abstract boolean |
isSnake()
Is this node a
Snake node? |
PathNode |
previousSnake()
|
java.lang.String |
toString() |
public final int original
public final int revised
public final PathNode prev
public PathNode(int original,
int revised,
PathNode prev)
original - The position in the original sequence for the new node.revised - The position in the revised sequence for the new node.prev - The previous node in the path.public abstract boolean isSnake()
Snake node?Snake nodepublic boolean isBootstrap()
In bottstrap nodes one of the two corrdinates is less than zero.
public final PathNode previousSnake()
DiffNodes until a
Snake or bootstrap node is found, or the end
of the path is reached.Snake or bootstrap node in the path, or
null
if none found.public java.lang.String toString()
toString in class java.lang.Object