Package org.eclipse.jgit.revwalk
Class StartGenerator
- java.lang.Object
-
- org.eclipse.jgit.revwalk.Generator
-
- org.eclipse.jgit.revwalk.StartGenerator
-
class StartGenerator extends Generator
Initial RevWalk generator that bootstraps a new walk.Initially RevWalk starts with this generator as its chosen implementation. The first request for a RevCommit from the RevWalk instance calls to our
next()method, and we replace ourselves with the best Generator implementation available based upon the current RevWalk configuration.
-
-
Field Summary
Fields Modifier and Type Field Description private RevWalkwalker-
Fields inherited from class org.eclipse.jgit.revwalk.Generator
firstParent, HAS_REWRITE, HAS_UNINTERESTING, NEEDS_REWRITE, SORT_COMMIT_TIME_DESC, SORT_TOPO
-
-
Constructor Summary
Constructors Constructor Description StartGenerator(RevWalk w)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description (package private) RevCommitnext()Return the next commit to the application, or the next generator.(package private) intoutputType()Obtain flags describing the output behavior of this generator.-
Methods inherited from class org.eclipse.jgit.revwalk.Generator
shareFreeList
-
-
-
-
Field Detail
-
walker
private final RevWalk walker
-
-
Constructor Detail
-
StartGenerator
StartGenerator(RevWalk w)
-
-
Method Detail
-
outputType
int outputType()
Description copied from class:GeneratorObtain flags describing the output behavior of this generator.- Specified by:
outputTypein classGenerator- Returns:
- one or more of the constants declared in this class, describing how this generator produces its results.
-
next
RevCommit next() throws MissingObjectException, IncorrectObjectTypeException, java.io.IOException
Description copied from class:GeneratorReturn the next commit to the application, or the next generator.- Specified by:
nextin classGenerator- Returns:
- next available commit; null if no more are to be returned.
- Throws:
MissingObjectExceptionIncorrectObjectTypeExceptionjava.io.IOException
-
-