Class FSTree.Visitor<E>
- java.lang.Object
-
- de.unibremen.informatik.st.libvcs4j.FSTree.Visitor<E>
-
-
Constructor Summary
Constructors Constructor Description Visitor()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
visit(FSTree<E> pTree)
DelegatespTree
tovisitDirectory(FSTree)
orvisitFile(FSTree)
depending on whetherpTree
represents a directory or a file.protected void
visitDirectory(FSTree<E> pDirectory)
Visits the given directory.protected void
visitFile(FSTree<E> pFile)
Visits the given file.protected void
visitFile(VCSFile pFile)
Visits the given file.
-
-
-
Method Detail
-
visit
public void visit(FSTree<E> pTree)
DelegatespTree
tovisitDirectory(FSTree)
orvisitFile(FSTree)
depending on whetherpTree
represents a directory or a file.- Parameters:
pTree
- The tree to visit and delegate.
-
visitDirectory
protected void visitDirectory(FSTree<E> pDirectory)
Visits the given directory.- Parameters:
pDirectory
- The directory to visit.
-
visitFile
protected void visitFile(FSTree<E> pFile)
Visits the given file.- Parameters:
pFile
- The tree containing the file to visit.
-
visitFile
protected void visitFile(VCSFile pFile)
Visits the given file.- Parameters:
pFile
- The file to visit.
-
-