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 voidAn assertion to call when reaching a point that should not be reached.static voidAn assertion to call when reaching a point that should not be reached.static voidUNREACHABLE(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
public static void 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
-