edu.rice.cs.cunit.threadCheck
Enum OnlyRunBy.EVENT_THREAD

java.lang.Object
  extended by java.lang.Enum<OnlyRunBy.EVENT_THREAD>
      extended by edu.rice.cs.cunit.threadCheck.OnlyRunBy.EVENT_THREAD
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable<OnlyRunBy.EVENT_THREAD>
Enclosing class:
OnlyRunBy

public static enum OnlyRunBy.EVENT_THREAD
extends java.lang.Enum<OnlyRunBy.EVENT_THREAD>

Describes selection of the event thread.


Enum Constant Summary
NO
          Event thread not selected.
ONLY
          Only event thread may run (for use inside @OnlyRunBy).
ONLY_AFTER_REALIZED
          Only event thread may run after a component has been realized (for use with @OnlyRunBy).
 
Method Summary
static OnlyRunBy.EVENT_THREAD valueOf(java.lang.String name)
          Returns the enum constant of this type with the specified name.
static OnlyRunBy.EVENT_THREAD[] values()
          Returns an array containing the constants of this enum type, in the order they are declared.
 
Methods inherited from class java.lang.Enum
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

NO

public static final OnlyRunBy.EVENT_THREAD NO
Event thread not selected.


ONLY_AFTER_REALIZED

public static final OnlyRunBy.EVENT_THREAD ONLY_AFTER_REALIZED
Only event thread may run after a component has been realized (for use with @OnlyRunBy).


ONLY

public static final OnlyRunBy.EVENT_THREAD ONLY
Only event thread may run (for use inside @OnlyRunBy).

Method Detail

values

public static OnlyRunBy.EVENT_THREAD[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
for (OnlyRunBy.EVENT_THREAD c : OnlyRunBy.EVENT_THREAD.values())
    System.out.println(c);

Returns:
an array containing the constants of this enum type, in the order they are declared

valueOf

public static OnlyRunBy.EVENT_THREAD valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)

Parameters:
name - the name of the enum constant to be returned.
Returns:
the enum constant with the specified name
Throws:
java.lang.IllegalArgumentException - if this enum type has no constant with the specified name
java.lang.NullPointerException - if the argument is null