Class Assertions
java.lang.Object
com.ibm.wala.util.debug.Assertions
WALA-specific assertion checking.
This may go away in favor of Java language-level assertions.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voidproductionAssertion(boolean b) An assertion which does not need to be guarded by verifyAssertions.static voidproductionAssertion(boolean b, String string) An assertion which does not need to be guarded by verifyAssertions.static <T> TAn assertion to call when reaching a point that should not be reached.static <T> TAn assertion to call when reaching a point that should not be reached.static <T> TUNREACHABLE(String string) An assertion to call when reaching a point that should not be reached.
-
Constructor Details
-
Assertions
public Assertions()
-
-
Method Details
-
productionAssertion
An assertion which does not need to be guarded by verifyAssertions. These assertions will be enabled in production!- Throws:
UnimplementedError- if b == false
-
productionAssertion
An assertion which does not need to be guarded by verifyAssertions. These assertions will be enabled in production!- Throws:
UnimplementedError- if b == false
-
UNREACHABLE
@Contract(" -> fail") public static <T> T UNREACHABLE()An assertion to call when reaching a point that should not be reached.- Throws:
UnimplementedError- unconditionally
-
UNREACHABLE
An assertion to call when reaching a point that should not be reached.- Throws:
UnimplementedError- unconditionally
-
UNREACHABLE
An assertion to call when reaching a point that should not be reached.- Throws:
UnimplementedError- unconditionally
-