|
JNodeOS v1.1.5 API | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--edu.utah.janos.nodeos.Assert
Assert package.
XXX Currently this is public for my convenience.
Constructor Summary | |
Assert()
|
Method Summary | |
static void |
assertCheck(boolean expr,
java.lang.String exprStr,
java.lang.String file,
int line)
Check that the boolean expression is true. |
static void |
assertCheck(java.lang.Object ref,
java.lang.String exprStr,
java.lang.String file,
int line)
Check that the given object reference is non-null. |
static void |
assertLockedCheck(java.lang.Object obj,
java.lang.String exprStr,
java.lang.String file,
int line)
Assert the given object is locked. |
static void |
ensureCheck(boolean expr,
java.lang.String exprStr,
java.lang.String file,
int line)
Check that the boolean expression is true. |
static void |
ensureCheck(java.lang.Object ref,
java.lang.String exprStr,
java.lang.String file,
int line)
Check that the given object reference is non-null. |
static void |
requireCheck(boolean expr,
java.lang.String exprStr,
java.lang.String file,
int line)
Check that the boolean expression is true. |
static void |
requireCheck(java.lang.Object ref,
java.lang.String exprStr,
java.lang.String file,
int line)
Check that the given object reference is non-null. |
Methods inherited from class java.lang.Object |
equals,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
Constructor Detail |
public Assert()
Method Detail |
public static void assertCheck(boolean expr, java.lang.String exprStr, java.lang.String file, int line)
expr
- the expression to checkexprStr
- the string representation of the expressionfile
- the name of the file the assert is inline
- the line number of the file the assert is in#assertFailure(String,String,String,String)
public static void requireCheck(boolean expr, java.lang.String exprStr, java.lang.String file, int line)
expr
- the expression to checkexprStr
- the string representation of the expressionfile
- the name of the file the require is inline
- the line number of the file the require is in#assertFailure(String,String,String,String)
public static void ensureCheck(boolean expr, java.lang.String exprStr, java.lang.String file, int line)
expr
- the expression to checkexprStr
- the string representation of the expressionfile
- the name of the file the ensure is inline
- the line number of the file the ensure is in#assertFailure(String,String,String,String)
public static void assertCheck(java.lang.Object ref, java.lang.String exprStr, java.lang.String file, int line)
expr
- the expression to checkexprStr
- the string representation of the expressionfile
- the name of the file the assert is inline
- the line number of the file the assert is in#assertFailure(String,String,String,String)
public static void requireCheck(java.lang.Object ref, java.lang.String exprStr, java.lang.String file, int line)
expr
- the expression to checkexprStr
- the string representation of the expressionfile
- the name of the file the assert is inline
- the line number of the file the assert is in#assertFailure(String,String,String,String)
public static void ensureCheck(java.lang.Object ref, java.lang.String exprStr, java.lang.String file, int line)
expr
- the expression to checkexprStr
- the string representation of the expressionfile
- the name of the file the assert is inline
- the line number of the file the assert is in#assertFailure(String,String,String,String)
public static void assertLockedCheck(java.lang.Object obj, java.lang.String exprStr, java.lang.String file, int line)
|
JNodeOS v1.1.5 API | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |