|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectedu.rice.cs.cunit.threadCheck.predicates.NotReflectionThreadCheckPredicates
public class NotReflectionThreadCheckPredicates
Class containing several common predicates for the @Not* annotations that use reflection.
| Constructor Summary | |
|---|---|
NotReflectionThreadCheckPredicates()
|
|
| Method Summary | |
|---|---|
static boolean |
checkGroup(java.lang.Object thisObject,
java.lang.Class fieldClass,
java.lang.String fieldName)
Return false if the current thread's group name is equal to the string in the specified field. |
static boolean |
checkGroupByName(java.lang.Object thisObject,
java.lang.String fieldClassName,
java.lang.String fieldName)
Return true if the current thread's group name is equal to the string in the specified field. |
static boolean |
checkName(java.lang.Object thisObject,
java.lang.Class fieldClass,
java.lang.String fieldName)
Return false if the current thread's name is equal to the string in the specified field. |
static boolean |
checkNameByName(java.lang.Object thisObject,
java.lang.String fieldClassName,
java.lang.String fieldName)
Return true if the current thread's name is equal to the string in the specified field. |
static boolean |
checkSynchronizedField(java.lang.Object thisObject,
java.lang.Class fieldClass,
java.lang.String fieldName)
Return false if the current thread owns the monitor of the specified field. |
static boolean |
checkSynchronizedFieldByAnyThread(java.lang.Object thisObject,
java.lang.Class fieldClass,
java.lang.String fieldName)
Return false if any thread owns the monitor of the specified field. |
static boolean |
checkSynchronizedFieldByAnyThreadByName(java.lang.Object thisObject,
java.lang.String fieldClassName,
java.lang.String fieldName)
Return false if any thread owns the monitor of the specified field. |
static boolean |
checkSynchronizedFieldByName(java.lang.Object thisObject,
java.lang.String fieldClassName,
java.lang.String fieldName)
Return false if the current thread owns the monitor of the specified field. |
static boolean |
checkThread(java.lang.Object thisObject,
java.lang.Class fieldClass,
java.lang.String fieldName)
Return false if the current thread is equal to the thread in the specified field. |
static boolean |
checkThreadByName(java.lang.Object thisObject,
java.lang.String fieldClassName,
java.lang.String fieldName)
Return false if the current thread is equal to the thread in the specified field. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public NotReflectionThreadCheckPredicates()
| Method Detail |
|---|
public static boolean checkThread(java.lang.Object thisObject,
java.lang.Class fieldClass,
java.lang.String fieldName)
thisObject - "this" at the time of the check, or null if not available; ignored by this methodfieldClass - the class the field is infieldName - the name of the field
public static boolean checkName(java.lang.Object thisObject,
java.lang.Class fieldClass,
java.lang.String fieldName)
thisObject - "this" at the time of the check, or null if not available; ignored by this methodfieldClass - the class the field is infieldName - the name of the field
public static boolean checkGroup(java.lang.Object thisObject,
java.lang.Class fieldClass,
java.lang.String fieldName)
thisObject - "this" at the time of the check, or null if not available; ignored by this methodfieldClass - the class the field is infieldName - the name of the field
public static boolean checkThreadByName(java.lang.Object thisObject,
java.lang.String fieldClassName,
java.lang.String fieldName)
thisObject - "this" at the time of the check, or null if not available; ignored by this methodfieldClassName - the name of the class the field is infieldName - the name of the field
public static boolean checkNameByName(java.lang.Object thisObject,
java.lang.String fieldClassName,
java.lang.String fieldName)
thisObject - "this" at the time of the check, or null if not available; ignored by this methodfieldClassName - the name of the class the field is infieldName - the name of the field
public static boolean checkGroupByName(java.lang.Object thisObject,
java.lang.String fieldClassName,
java.lang.String fieldName)
thisObject - "this" at the time of the check, or null if not available; ignored by this methodfieldClassName - the name of the class the field is infieldName - the name of the field
public static boolean checkSynchronizedField(java.lang.Object thisObject,
java.lang.Class fieldClass,
java.lang.String fieldName)
thisObject - "this" at the time of the check, or null if not available; ignored by this methodfieldClass - the class the field is infieldName - the name of the field
public static boolean checkSynchronizedFieldByName(java.lang.Object thisObject,
java.lang.String fieldClassName,
java.lang.String fieldName)
thisObject - "this" at the time of the check, or null if not available; ignored by this methodfieldClassName - the name of the class the field is infieldName - the name of the field
public static boolean checkSynchronizedFieldByAnyThread(java.lang.Object thisObject,
java.lang.Class fieldClass,
java.lang.String fieldName)
thisObject - "this" at the time of the check, or null if not available; ignored by this methodfieldClass - the class the field is infieldName - the name of the field
public static boolean checkSynchronizedFieldByAnyThreadByName(java.lang.Object thisObject,
java.lang.String fieldClassName,
java.lang.String fieldName)
thisObject - "this" at the time of the check, or null if not available; ignored by this methodfieldClassName - the name of the class the field is infieldName - the name of the field
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||