edu.rice.cs.cunit.threadCheck.subAnnot.predicates
Annotation Type ThreadWithName


@Retention(value=RUNTIME)
@Target(value={CONSTRUCTOR,METHOD,TYPE})
public @interface ThreadWithName

An annotation used to designate methods that are only allowed to be run by a thread with the specified name.

Author:
Mathias Ricken

Required Element Summary
 java.lang.String value
          Name of the thread.
 
Optional Element Summary
 boolean regex
          Determines if the string in the value member is a regular expression (true) or a plain string (false).
 

Element Detail

value

public abstract java.lang.String value
Name of the thread. If the regex member is true, then this is treated as a regular expression.

Returns:
name or regular expression for the name of the thread allowed to run

regex

public abstract boolean regex
Determines if the string in the value member is a regular expression (true) or a plain string (false).

Returns:
true if the string in the value member is a regular expression
Default:
false