Constructor and Description |
---|
Assert() |
Modifier and Type | Method and Description |
---|---|
abstract void |
_assert(boolean cond)
Checks that the given condition is true.
|
abstract void |
_assert(boolean cond,
String message)
Checks that the given condition is true.
|
abstract void |
dumpStack()
Print a stack trace
|
abstract void |
fail(String message)
Logs a message and traceback, then exits.
|
protected abstract boolean |
getVerifyAssertionsConstant() |
(package private) static boolean |
verifyAssertionsTrapdoor(Assert a) |
public Assert()
public abstract void fail(String message)
message
- the string to logpublic abstract void _assert(boolean cond)
VM.VERIFY_ASSERTIONS
.cond
- the condition to be checkedpublic abstract void _assert(boolean cond, String message)
VM.VERIFY_ASSERTIONS
.cond
- the condition to be checkedmessage
- the message to printpublic abstract void dumpStack()
protected abstract boolean getVerifyAssertionsConstant()
true
if assertions should be verifiedstatic boolean verifyAssertionsTrapdoor(Assert a)