public abstract class VerifyPhase<C> extends BasePhase<C>
verify(StructuredGraph, Object) method will be used as an assertion, and implements the
actual check. Instead of returning false, it is also valid to throw an VerifyPhase.VerificationError
in the implemented verify(StructuredGraph, Object) method.| Modifier and Type | Class and Description |
|---|---|
static class |
VerifyPhase.VerificationError
Thrown when verification performed by a
VerifyPhase fails. |
BEFORE_PHASE_DUMP_LEVEL, PHASE_DUMP_LEVEL| Constructor and Description |
|---|
VerifyPhase() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
run(StructuredGraph graph,
C context) |
protected abstract boolean |
verify(StructuredGraph graph,
C context)
Performs the actual verification.
|
apply, apply, createName, getNamepublic VerifyPhase()
protected final void run(StructuredGraph graph, C context)
protected abstract boolean verify(StructuredGraph graph, C context)
VerifyPhase.VerificationError - if the verification fails