| java.lang.Object org.apache.commons.jrcs.diff.myers.PathNode
All known Subclasses: org.apache.commons.jrcs.diff.myers.DiffNode, org.apache.commons.jrcs.diff.myers.Snake,
PathNode | abstract public class PathNode (Code) | | A node in a diffpath.
version: $Revision: 7756 $ $Date: 2006-04-12 18:30:19 +0100 (Wed, 12 Apr version: 2006) $ author: Juanco Anez See Also: DiffNode See Also: Snake |
Field Summary | |
final public int | i Position in the original sequence. | final public int | j Position in the revised sequence. | final public PathNode | prev The previous node in the path. |
Constructor Summary | |
public | PathNode(int i, int j, PathNode prev) Concatenates a new path node with an existing diffpath. |
Method Summary | |
public boolean | isBootstrap() Is this a bootstrap node?
In bottstrap nodes one of the two corrdinates is less than zero. | abstract public boolean | isSnake() | final public PathNode | previousSnake() Skips sequences of
DiffNode DiffNodes until a
Snake or
bootstrap node is found, or the end of the path is reached. | public String | toString() |
i | final public int i(Code) | | Position in the original sequence.
|
j | final public int j(Code) | | Position in the revised sequence.
|
PathNode | public PathNode(int i, int j, PathNode prev)(Code) | | Concatenates a new path node with an existing diffpath.
Parameters: i - The position in the original sequence for the new node. Parameters: j - The position in the revised sequence for the new node. Parameters: prev - The previous node in the path. |
isBootstrap | public boolean isBootstrap()(Code) | | Is this a bootstrap node?
In bottstrap nodes one of the two corrdinates is less than zero.
tru if this is a bootstrap node. |
isSnake | abstract public boolean isSnake()(Code) | | Is this node a
Snake Snake node ?
true if this is a Snake Snake node |
previousSnake | final public PathNode previousSnake()(Code) | | Skips sequences of
DiffNode DiffNodes until a
Snake or
bootstrap node is found, or the end of the path is reached.
The next first Snake or bootstrap node in the path, ornull if none found. |
|
|