difflib.myers
Class Snake
java.lang.Object
difflib.myers.PathNode
difflib.myers.Snake
public final class Snake
- extends PathNode
Represents a snake in a diffpath.
DiffNodes
and Snakes
allow for compression
of diffpaths, as each snake is represented by a single Snake
node and each contiguous series of insertions and deletions is represented
by a single DiffNodes
.
- Version:
- $Revision: 69 $ $Date: 2003-10-13 11:00:44 +0300 (Пнд, 13 Окт 2003) $
- Author:
- Juanco Anez
Constructor Summary |
Snake(int i,
int j,
PathNode prev)
Constructs a snake node. |
Snake
public Snake(int i,
int j,
PathNode prev)
- Constructs a snake node.
- Parameters:
the
- position in the original sequencethe
- position in the revised sequenceprev
- the previous node in the path.
isSnake
public boolean isSnake()
- Is this node a
Snake node
?
- Specified by:
isSnake
in class PathNode
- Returns:
- true always
Copyright © 2009-2013. All Rights Reserved.