public class PhaseSuite<C> extends BasePhase<C>
Modifier and Type | Field and Description |
---|---|
private List<BasePhase<? super C>> |
phases |
BEFORE_PHASE_DUMP_LEVEL, PHASE_DUMP_LEVEL
Constructor and Description |
---|
PhaseSuite() |
Modifier and Type | Method and Description |
---|---|
void |
appendPhase(BasePhase<? super C> phase)
Add a new phase at the end of this suite.
|
PhaseSuite<C> |
copy() |
static <C> boolean |
findNextPhase(ListIterator<BasePhase<? super C>> it,
Class<? extends BasePhase<? super C>> phaseClass) |
ListIterator<BasePhase<? super C>> |
findPhase(Class<? extends BasePhase<? super C>> phaseClass) |
void |
prependPhase(BasePhase<? super C> phase)
Add a new phase at the beginning of this suite.
|
boolean |
removePhase(Class<? extends BasePhase<? super C>> phaseClass)
Removes the first instance of the given phase class, looking recursively into inner phase
suites.
|
protected void |
run(StructuredGraph graph,
C context) |
apply, apply, createName, getName
public PhaseSuite()
public final void prependPhase(BasePhase<? super C> phase)
public final void appendPhase(BasePhase<? super C> phase)
public final ListIterator<BasePhase<? super C>> findPhase(Class<? extends BasePhase<? super C>> phaseClass)
public static <C> boolean findNextPhase(ListIterator<BasePhase<? super C>> it, Class<? extends BasePhase<? super C>> phaseClass)
public boolean removePhase(Class<? extends BasePhase<? super C>> phaseClass)
public PhaseSuite<C> copy()