abstract class AbstractRevQueue extends Generator
Modifier and Type | Class and Description |
---|---|
private static class |
AbstractRevQueue.AlwaysEmptyQueue |
Modifier and Type | Field and Description |
---|---|
(package private) static AbstractRevQueue |
EMPTY_QUEUE |
(package private) int |
outputType
Current output flags set for this generator instance.
|
firstParent, HAS_REWRITE, HAS_UNINTERESTING, NEEDS_REWRITE, SORT_COMMIT_TIME_DESC, SORT_TOPO
Constructor and Description |
---|
AbstractRevQueue(boolean firstParent) |
Modifier and Type | Method and Description |
---|---|
abstract void |
add(RevCommit c)
Add a commit to the queue.
|
void |
add(RevCommit c,
RevFlag queueControl)
Add a commit if it does not have a flag set yet, then set the flag.
|
void |
addParents(RevCommit c,
RevFlag queueControl)
Add a commit's parents if one does not have a flag set yet.
|
(package private) abstract boolean |
anybodyHasFlag(int f) |
abstract void |
clear()
Remove all entries from this queue.
|
protected static void |
describe(java.lang.StringBuilder s,
RevCommit c)
Describe this queue
|
(package private) abstract boolean |
everbodyHasFlag(int f) |
abstract RevCommit |
next()
Return the next commit to the application, or the next generator.
|
(package private) int |
outputType()
Obtain flags describing the output behavior of this generator.
|
shareFreeList
static final AbstractRevQueue EMPTY_QUEUE
int outputType
public abstract void add(RevCommit c)
This method always adds the commit, even if it is already in the queue or
previously was in the queue but has already been removed. To control
queue admission use add(RevCommit, RevFlag)
.
c
- commit to add.public final void add(RevCommit c, RevFlag queueControl)
This method permits the application to test if the commit has the given flag; if it does not already have the flag than the commit is added to the queue and the flag is set. This later will prevent the commit from being added twice.
c
- commit to add.queueControl
- flag that controls admission to the queue.public final void addParents(RevCommit c, RevFlag queueControl)
This method permits the application to test if the commit has the given flag; if it does not already have the flag than the commit is added to the queue and the flag is set. This later will prevent the commit from being added twice.
c
- commit whose parents should be added.queueControl
- flag that controls admission to the queue.public abstract RevCommit next()
Remove the first commit from the queue.
public abstract void clear()
abstract boolean everbodyHasFlag(int f)
abstract boolean anybodyHasFlag(int f)
int outputType()
Generator
outputType
in class Generator