Top Description Fields Constructors Methods
org.eclipse.jgit.revwalk

pack-priv Class StartGenerator

extends Generator
Class Inheritance
Imports
java.io.IOException, java.text.MessageFormat, org.eclipse.jgit.errors.IncorrectObjectTypeException, .MissingObjectException, org.eclipse.jgit.internal.JGitText, org.eclipse.jgit.revwalk.filter.AndRevFilter, .RevFilter, org.eclipse.jgit.treewalk.filter.TreeFilter

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

Modifier and TypeField and Description
private final RevWalk
Inherited from org.eclipse.jgit.revwalk.Generator:
firstParentHAS_REWRITEHAS_UNINTERESTINGNEEDS_REWRITESORT_COMMIT_TIME_DESCSORT_TOPO

Constructor Summary

AccessConstructor and Description
pack-priv

Method Summary

Modifier and TypeMethod and Description
pack-priv RevCommit
next()

Implements abstract org.eclipse.jgit.revwalk.Generator.next.

Return the next commit to the application, or the next generator.

pack-priv int
outputType()

Implements abstract org.eclipse.jgit.revwalk.Generator.outputType.

Obtain flags describing the output behavior of this generator.

Inherited from org.eclipse.jgit.revwalk.Generator:
shareFreeList

Field Detail

walkerback to summary
private final RevWalk walker

Constructor Detail

StartGeneratorback to summary
pack-priv StartGenerator(RevWalk w)

Method Detail

nextback to summary
pack-priv RevCommit next() throws MissingObjectException, IncorrectObjectTypeException, IOException

Implements abstract org.eclipse.jgit.revwalk.Generator.next.

Doc from org.eclipse.jgit.revwalk.Generator.next.

Return the next commit to the application, or the next generator.

Returns:RevCommit

next available commit; null if no more are to be returned.

Annotations
@Override
Exceptions
MissingObjectException:
if an object is missing
IncorrectObjectTypeException:
if an object has an unexpected type
IOException:
if an IO error occurred
outputTypeback to summary
pack-priv int outputType()

Implements abstract org.eclipse.jgit.revwalk.Generator.outputType.

Doc from org.eclipse.jgit.revwalk.Generator.outputType.

Obtain flags describing the output behavior of this generator.

Returns:int

one or more of the constants declared in this class, describing how this generator produces its results.

Annotations
@Override