|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.mmtk.vm.Assert
public abstract class Assert
| Constructor Summary | |
|---|---|
Assert()
|
|
| Method Summary | |
|---|---|
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)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Assert()
| Method Detail |
|---|
public abstract void fail(String message)
message - the string to logpublic abstract void _assert(boolean cond)
VM.VERIFY_ASSERTIONS.
cond - the condition to be checked
public 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)
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||