public final class AlwaysValidAssumption extends Object implements Assumption
| Modifier and Type | Field and Description |
|---|---|
static AlwaysValidAssumption |
INSTANCE |
| Modifier and Type | Method and Description |
|---|---|
void |
check()
Checks that this assumption is still valid.
|
String |
getName()
A name for the assumption that is used for debug output.
|
void |
invalidate()
Invalidates this assumption.
|
void |
invalidate(String message)
Invalidates this assumption.
|
boolean |
isValid()
Checks whether the assumption is still valid.
|
public static final AlwaysValidAssumption INSTANCE
public void check()
throws InvalidAssumptionException
AssumptionAssumption.isValid() method when writing
guest language interpreter code. The catch block should perform a node rewrite (see
Node.replace(Node)) with a node that no longer relies on the assumption.check in interface AssumptionInvalidAssumptionException - If the assumption is no longer valid.public void invalidate()
Assumptioninvalidate in interface Assumptionpublic void invalidate(String message)
Assumptioninvalidate in interface Assumptionmessage - a message stating the reason of the invalidationpublic String getName()
AssumptiongetName in interface Assumptionpublic boolean isValid()
AssumptionisValid in interface Assumption