|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectedu.rice.cs.cunit.threadCheck.predicates.NotThreadCheckPredicates
public class NotThreadCheckPredicates
Class containing several common predicates used by the @Not* annotations.
Constructor Summary | |
---|---|
NotThreadCheckPredicates()
|
Method Summary | |
---|---|
static boolean |
checkEventThread(java.lang.Object thisObject)
Return false if the current thread is the event thread. |
static boolean |
checkGroup(java.lang.Object thisObject,
java.lang.String value,
boolean regex)
Return false if the current thread's group equals the specified string |
static boolean |
checkName(java.lang.Object thisObject,
java.lang.String value,
boolean regex)
Return false if the current thread's name equals the specified string |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public NotThreadCheckPredicates()
Method Detail |
---|
public static boolean checkEventThread(java.lang.Object thisObject)
thisObject
- "this" at the time of the check, or null if not available; ignored by this method
public static boolean checkName(java.lang.Object thisObject, java.lang.String value, boolean regex)
thisObject
- "this" at the time of the check, or null if not available; ignored by this methodvalue
- string to compare the current thread's name toregex
- true if value should be treated as a regular expression
public static boolean checkGroup(java.lang.Object thisObject, java.lang.String value, boolean regex)
thisObject
- "this" at the time of the check, or null if not available; ignored by this methodvalue
- string to compare the current thread's group toregex
- true if value should be treated as a regular expression
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |