Class JmcAssume
java.lang.Object
org.mpi_sws.jmc.api.util.statements.JmcAssume
The JmcAssume class provides a method to assert conditions in the JMC runtime environment. If the
condition is false, it throws a HaltTaskException, effectively halting the current task.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voidassume(boolean condition) Assumes that the given condition is true.
-
Constructor Details
-
JmcAssume
public JmcAssume()
-
-
Method Details
-
assume
public static void assume(boolean condition) Assumes that the given condition is true. If the condition is false, it throws a HaltTaskException, halting the current task.- Parameters:
condition- the condition to assume- Throws:
HaltTaskException- if the condition is false
-