|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.mmtk.vm.Assert
org.jikesrvm.mm.mmtk.Assert
public class Assert
| Constructor Summary | |
|---|---|
Assert()
|
|
| Method Summary | |
|---|---|
void |
_assert(boolean cond)
Checks that the given condition is true. |
void |
_assert(boolean cond,
String message)
Checks that the given condition is true. |
void |
dumpStack()
Print a stack trace |
void |
error(String str)
This method should be called whenever an error is encountered. |
void |
exit(int rc)
|
void |
fail(String message)
Logs a message and traceback, then exits. |
protected boolean |
getVerifyAssertionsConstant()
true if assertions should be verified |
boolean |
runningVM()
Checks if the virtual machine is running. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Assert()
| Method Detail |
|---|
protected final boolean getVerifyAssertionsConstant()
true if assertions should be verified
getVerifyAssertionsConstant in class Assertpublic final void error(String str)
str - A string describing the error condition.public final void fail(String message)
fail in class Assertmessage - the string to logpublic final void exit(int rc)
public final void _assert(boolean cond)
VM.VERIFY_ASSERTIONS.
_assert in class Assertcond - the condition to be checked
public final void _assert(boolean cond,
String message)
VM.VERIFY_ASSERTIONS.
_assert in class Assertcond - the condition to be checkedmessage - the message to printpublic final void dumpStack()
Assert
dumpStack in class Assertpublic final boolean runningVM()
runningVM in class Asserttrue if the virtual machine is running
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||