Example usage for Java org.eclipse.jgit.treewalk TreeWalk fields, constructors, methods, implement or subclass
The text is from its open source code.
TreeWalk(Repository repo) Create a new tree walker for a given repository. | |
TreeWalk(ObjectReader or) Create a new tree walker for a given repository. | |
TreeWalk(@Nullable Repository repo, ObjectReader or) Create a new tree walker for a given repository. |
int | addTree(AnyObjectId id) Add an already existing tree object for walking. |
int | addTree(AbstractTreeIterator p) Add an already created tree iterator for walking. |
void | close() Release any resources used by this walker's reader. |
void | enterSubtree() Enter into the current subtree. |
TreeWalk | forPath(final ObjectReader reader, final String path, final AnyObjectId... trees) Open a tree walk and filter to exactly one path. |
TreeWalk | forPath(final Repository db, final String path, final AnyObjectId... trees) Open a tree walk and filter to exactly one path. |
TreeWalk | forPath(final Repository db, final String path, final RevTree tree) Open a tree walk and filter to exactly one path. |
TreeWalk | forPath(final @Nullable Repository repo, final ObjectReader reader, final String path, final AnyObjectId... trees) Open a tree walk and filter to exactly one path. |
int | getDepth() Get the current subtree depth of this walker. |
FileMode | getFileMode(int nth) Obtain the org.eclipse.jgit.lib.FileMode for the current entry. |
TreeFilter | getFilter() Get the currently configured filter. |
String | getNameString() Get the current entry's name within its parent tree. |
ObjectId | getObjectId(int nth) Obtain the ObjectId for the current entry. |
void | getObjectId(MutableObjectId out, int nth) Obtain the ObjectId for the current entry. |
ObjectReader | getObjectReader() Get the reader this walker is using to load objects. |
int | getPathLength() Get the path length of the current entry. |
String | getPathString() Get the current entry's complete path. |
int | getRawMode(int nth) Obtain the raw org.eclipse.jgit.lib.FileMode bits for the current entry. |
byte[] | getRawPath() Get the current entry's complete path as a UTF-8 byte array. |
T | getTree(final int nth, final Class Obtain the tree iterator for the current entry. |
int | getTreeCount() Get the number of trees known to this walker. |
boolean | idEqual(int nthA, int nthB) Compare two tree's current ObjectId values for equality. |
int | isPathPrefix(byte[] p, int pLen) Test if the supplied path matches the current entry's path. |
boolean | isPostChildren() Is the current entry a subtree returned after its children? |
boolean | isRecursive() Is this walker automatically entering into subtrees? |
boolean | isSubtree() Is the current entry a subtree? |
boolean | next() Advance this walker to the next relevant entry. |
void | reset() Reset this walker so new tree iterators can be added to it. |
void | reset(AnyObjectId id) Reset this walker to run over a single existing tree. |
void | reset(AnyObjectId... ids) Reset this walker to run over a set of existing trees. |
void | setFilter(TreeFilter newFilter) Set the tree entry filter for this walker. |
void | setPostOrderTraversal(boolean b) Set the walker to return trees after their children. |
void | setRecursive(boolean b) Set the walker to enter (or not enter) subtrees automatically. |