|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.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()
|
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()
getVerifyAssertionsConstant
in class Assert
true
if assertions should be verifiedpublic final void error(String str)
str
- A string describing the error condition.public final void fail(String message)
Assert
fail
in class Assert
message
- the string to logpublic final void exit(int rc)
public final void _assert(boolean cond)
Assert
VM.VERIFY_ASSERTIONS
.
_assert
in class Assert
cond
- the condition to be checkedpublic final void _assert(boolean cond, String message)
Assert
VM.VERIFY_ASSERTIONS
.
_assert
in class Assert
cond
- the condition to be checkedmessage
- the message to printpublic final void dumpStack()
Assert
dumpStack
in class Assert
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |