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


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

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

Author:
Mathias Ricken

Required Element Summary
 java.lang.String value
          Group 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
Group name of the thread. If the regex member is true, then this is treated as a regular expression.

Returns:
group name or regular expression for the group 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