org.eclipse.jgit.lib
Class AbstractIndexTreeVisitor

java.lang.Object
  extended by org.eclipse.jgit.lib.AbstractIndexTreeVisitor
All Implemented Interfaces:
IndexTreeVisitor

public class AbstractIndexTreeVisitor
extends java.lang.Object
implements IndexTreeVisitor

Implementation of IndexTreeVisitor that can be subclassed if you don't case about certain events


Constructor Summary
AbstractIndexTreeVisitor()
           
 
Method Summary
 void finishVisitTree(Tree tree, int i, java.lang.String curDir)
          Invoked after handling all child nodes of a tree, during two way merge.
 void finishVisitTree(Tree tree, Tree auxTree, java.lang.String curDir)
          Invoked after handling all child nodes of a tree, during a three way merge
 void visitEntry(TreeEntry treeEntry, GitIndex.Entry indexEntry, java.io.File file)
          Visit a blob, and corresponding tree and index entries.
 void visitEntry(TreeEntry treeEntry, TreeEntry auxEntry, GitIndex.Entry indexEntry, java.io.File file)
          Visit a blob, and corresponding tree nodes and associated index entry.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AbstractIndexTreeVisitor

public AbstractIndexTreeVisitor()
Method Detail

finishVisitTree

public void finishVisitTree(Tree tree,
                            Tree auxTree,
                            java.lang.String curDir)
                     throws java.io.IOException
Description copied from interface: IndexTreeVisitor
Invoked after handling all child nodes of a tree, during a three way merge

Specified by:
finishVisitTree in interface IndexTreeVisitor
Throws:
java.io.IOException

finishVisitTree

public void finishVisitTree(Tree tree,
                            int i,
                            java.lang.String curDir)
                     throws java.io.IOException
Description copied from interface: IndexTreeVisitor
Invoked after handling all child nodes of a tree, during two way merge.

Specified by:
finishVisitTree in interface IndexTreeVisitor
Throws:
java.io.IOException

visitEntry

public void visitEntry(TreeEntry treeEntry,
                       GitIndex.Entry indexEntry,
                       java.io.File file)
                throws java.io.IOException
Description copied from interface: IndexTreeVisitor
Visit a blob, and corresponding tree and index entries.

Specified by:
visitEntry in interface IndexTreeVisitor
Throws:
java.io.IOException

visitEntry

public void visitEntry(TreeEntry treeEntry,
                       TreeEntry auxEntry,
                       GitIndex.Entry indexEntry,
                       java.io.File file)
                throws java.io.IOException
Description copied from interface: IndexTreeVisitor
Visit a blob, and corresponding tree nodes and associated index entry.

Specified by:
visitEntry in interface IndexTreeVisitor
Throws:
java.io.IOException