001 package edu.rice.cs.cunit.threadCheck;
002
003 import java.lang.annotation.Retention;
004 import java.lang.annotation.RetentionPolicy;
005 import java.lang.annotation.Target;
006
007 /**
008 * Describes a thread.
009 * @author Mathias Ricken
010 */
011 @Retention(RetentionPolicy.CLASS)
012 @Target({})
013 public @interface ThreadDesc {
014 /** @return regular expression for the thread name. */
015 String name() default "";
016
017 /** @return thread ID number as returned by Thread.getID(). */
018 long id() default -1;
019
020 /** @return regular expressions for thread group name. */
021 String group() default "";
022
023 /** @return designates if the event thread has been selected (for use inside @OnlyRunBy). */
024 OnlyRunBy.EVENT_THREAD eventThread() default OnlyRunBy.EVENT_THREAD.NO;
025 }