org.sourcejammer.client.gui.merge
Class Diff3Traverser

java.lang.Object
  |
  +--org.sourcejammer.client.gui.merge.Diff3Traverser

public class Diff3Traverser
extends java.lang.Object

Version:
$VerNum: 2$ $KeyWordsOff: $

Traverses a diff3, returning hunks or lines.
Author:
$AuthorName: Rob MacGrogan$

Field Summary
private  JLibDiff.diff3 diff
           
private  java.lang.String eol
           
(package private)  int index
           
private  java.util.ArrayList points
           
 
Constructor Summary
Diff3Traverser(JLibDiff.diff3 diff)
          Constructor for Diff3Traverser.
 
Method Summary
private  void advanceIndex()
           
private  java.util.ArrayList buildPoints()
           
 boolean hasNextPoint()
           
 boolean hasPreviousPoint()
           
 Point nextPoint()
           
 Point previousPoint()
           
private  void reduceIndex()
           
 void reset()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

diff

private JLibDiff.diff3 diff

points

private java.util.ArrayList points

eol

private java.lang.String eol

index

int index
Constructor Detail

Diff3Traverser

public Diff3Traverser(JLibDiff.diff3 diff)
Constructor for Diff3Traverser.

Method Detail

buildPoints

private java.util.ArrayList buildPoints()

advanceIndex

private void advanceIndex()

reset

public void reset()

hasNextPoint

public boolean hasNextPoint()

nextPoint

public Point nextPoint()

reduceIndex

private void reduceIndex()

hasPreviousPoint

public boolean hasPreviousPoint()

previousPoint

public Point previousPoint()


Copyright 2003 Soucejammer project.