org.eclipse.jgit.lib
Interface TreeVisitor

All Known Implementing Classes:
ForceModified, TreeVisitorWithCurrentDirectory, WriteTree

public interface TreeVisitor

A TreeVisitor is invoked depth first for every node in a tree and is expected to perform different actions.


Method Summary
 void endVisitTree(Tree t)
          Visit to a tree node.
 void startVisitTree(Tree t)
          Visit to a tree node before child nodes are visited.
 void visitFile(FileTreeEntry f)
          Visit to a blob.
 void visitGitlink(GitlinkTreeEntry s)
          Visit to a gitlink.
 void visitSymlink(SymlinkTreeEntry s)
          Visit to a symlink.
 

Method Detail

startVisitTree

void startVisitTree(Tree t)
                    throws java.io.IOException
Visit to a tree node before child nodes are visited.

Parameters:
t - Tree
Throws:
java.io.IOException

endVisitTree

void endVisitTree(Tree t)
                  throws java.io.IOException
Visit to a tree node. after child nodes have been visited.

Parameters:
t - Tree
Throws:
java.io.IOException

visitFile

void visitFile(FileTreeEntry f)
               throws java.io.IOException
Visit to a blob.

Parameters:
f - Blob
Throws:
java.io.IOException

visitSymlink

void visitSymlink(SymlinkTreeEntry s)
                  throws java.io.IOException
Visit to a symlink.

Parameters:
s - Symlink entry
Throws:
java.io.IOException

visitGitlink

void visitGitlink(GitlinkTreeEntry s)
                  throws java.io.IOException
Visit to a gitlink.

Parameters:
s - Gitlink entry
Throws:
java.io.IOException