edu.rice.cs.cunit.threadCheck.predicates
Annotation Type OnlyThreadWithName.InField


@Retention(value=RUNTIME)
@Target(value={CONSTRUCTOR,METHOD,TYPE})
public static @interface OnlyThreadWithName.InField

An annotation used to designate methods that are only allowed to be run by a thread whose name is equal to the string in the field specified by class and field name.


Required Element Summary
 java.lang.Class fieldClass
          The class that contains the field specifying the name of threads allowed to run.
 java.lang.String fieldName
          The name of the field specifying the name of threads allowed to run.
 

Element Detail

fieldClass

public abstract java.lang.Class fieldClass
The class that contains the field specifying the name of threads allowed to run.

Returns:
class containing the field

fieldName

public abstract java.lang.String fieldName
The name of the field specifying the name of threads allowed to run.

Returns:
name of the field