java.lang.Object
org.apache.wicket.util.diff.myers.PathNode
A node in a diffpath.
- Version:
- $Revision: 1.1 $ $Date: 2006/03/12 00:24:21 $
- Author:
- Juanco Anez
- See Also:
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
Is this a bootstrap node?abstract boolean
isSnake()
Is this node aSnake node
?final PathNode
toString()
-
Field Details
-
i
Position in the original sequence. -
j
Position in the revised sequence. -
prev
The previous node in the path.
-
-
Constructor Details
-
PathNode
Concatenates a new path node with an existing diffpath.- Parameters:
i
- The position in the original sequence for the new node.j
- The position in the revised sequence for the new node.prev
- The previous node in the path.
-
-
Method Details
-
isSnake
Is this node aSnake node
?- Returns:
- true if this is a
Snake node
-
isBootstrap
Is this a bootstrap node?In bootstrap nodes one of the two coordinates is less than zero.
- Returns:
- true if this is a bootstrap node.
-
previousSnake
Skips sequences ofDiffNodes
until aSnake
or bootstrap node is found, or the end of the path is reached.- Returns:
- The next first
Snake
or bootstrap node in the path, ornull
if none found.
-
toString
-