Class SuchThatShuttle.DeferredStepList

java.lang.Object
net.hydromatic.morel.compile.SuchThatShuttle.DeferredStepList
Enclosing class:
SuchThatShuttle

static class SuchThatShuttle.DeferredStepList extends Object
Maintains a list of steps that have not been applied yet.

Holds the state necessary for a classic topological sort algorithm: For each node, keep the list of unresolved forward references. After each reference is resolved, remove it from each node's list. Output each node as its unresolved list becomes empty. The topological sort is stable.