Assumption.ALWAYS_VALID instead.@Deprecated(since="22.1") public final class AlwaysValidAssumption extends Object implements Assumption
| Modifier and Type | Field and Description |
|---|---|
static AlwaysValidAssumption |
INSTANCE
Deprecated.
|
ALWAYS_VALID, NEVER_VALID| Modifier and Type | Method and Description |
|---|---|
void |
check()
Deprecated.
Checks that this assumption is still valid.
|
String |
getName()
Deprecated.
A name for the assumption that is used for debug output.
|
void |
invalidate()
Deprecated.
Invalidates this assumption.
|
void |
invalidate(String message)
Deprecated.
Invalidates this assumption.
|
boolean |
isValid()
Deprecated.
Checks whether the assumption is still valid.
|
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcreate, create, isValidAssumption, isValidAssumptionpublic 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