|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectdifflib.myers.PathNode
difflib.myers.Snake
public final class Snake
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.
| Field Summary |
|---|
| Fields inherited from class difflib.myers.PathNode |
|---|
i, j, prev |
| Constructor Summary | |
|---|---|
Snake(int i,
int j,
PathNode prev)
Constructs a snake node. |
|
| Method Summary | |
|---|---|
boolean |
isSnake()
Is this node a Snake node? |
| Methods inherited from class difflib.myers.PathNode |
|---|
isBootstrap, previousSnake, toString |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public Snake(int i,
int j,
PathNode prev)
the - position in the original sequencethe - position in the revised sequenceprev - the previous node in the path.| Method Detail |
|---|
public boolean isSnake()
Snake node?
isSnake in class PathNode
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||