Top Description Fields Constructors Methods
org.assertj.core.util.diff.myers

public final Class DiffNode

extends PathNode
Class Inheritance

Copy from https://code.google.com/p/java-diff-utils/.

A diffnode in a diffpath.

A DiffNode and its previous node mark a delta between two input sequences, that is, two differing subsequences between (possibly zero length) matching sequences. 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.

Author
Juanco Anez

Field Summary

Inherited from org.assertj.core.util.diff.myers.PathNode:
ijprev

Constructor Summary

AccessConstructor and Description
public
DiffNode(int
the position in the original sequence
i
,
int
the position in the revised sequence
j
,
PathNode
the previous node in the path.
prev
)

Constructs a DiffNode.

Method Summary

Modifier and TypeMethod and Description
public boolean

Returns:

false, always
isSnake
()

Implements abstract org.assertj.core.util.diff.myers.PathNode.isSnake.

Is this node a Snake node?
Inherited from org.assertj.core.util.diff.myers.PathNode:
isBootstrappreviousSnaketoString

Constructor Detail

DiffNodeback to summary
public DiffNode(int i, int j, PathNode prev)

Constructs a DiffNode.

DiffNodes are compressed. That means that the path pointed to by the prev parameter will be followed using PathNode#previousSnake until a non-diff node is found.

Parameters
i:int

the position in the original sequence

j:int

the position in the revised sequence

prev:PathNode

the previous node in the path.

Method Detail

isSnakeback to summary
public boolean isSnake()

Implements abstract org.assertj.core.util.diff.myers.PathNode.isSnake.

Doc from org.assertj.core.util.diff.myers.PathNode.isSnake.

Is this node a Snake node?

Returns:boolean

false, always

Annotations
@Override