public class TreeFilterMarker
extends java.lang.Object
TreeFilter
during a TreeWalk
for each entry and
returning the result as a bitmask.Modifier and Type | Field and Description |
---|---|
private TreeFilter[] |
filters |
Constructor and Description |
---|
TreeFilterMarker(TreeFilter[] markTreeFilters)
Construct a TreeFilterMarker.
|
Modifier and Type | Method and Description |
---|---|
int |
getMarks(TreeWalk walk)
Test the filters against the walk.
|
private final TreeFilter[] filters
public TreeFilterMarker(TreeFilter[] markTreeFilters)
markTreeFilters
- the filters to use for marking, must not have more elements
than Integer.SIZE
.java.lang.IllegalArgumentException
- if more tree filters are passed than possiblepublic int getMarks(TreeWalk walk) throws MissingObjectException, IncorrectObjectTypeException, java.io.IOException
TreeFilter.include(TreeWalk)
,
ordered by the index for which the tree filters were passed in the
constructor.walk
- the walk from which to test the current entryMissingObjectException
- as thrown by
TreeFilter.include(TreeWalk)
IncorrectObjectTypeException
- as thrown by
TreeFilter.include(TreeWalk)
java.io.IOException
- as thrown by
TreeFilter.include(TreeWalk)