Package org.junit.internal
Enum Throwables.State
- java.lang.Object
-
- java.lang.Enum<Throwables.State>
-
- org.junit.internal.Throwables.State
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<Throwables.State>
- Enclosing class:
- Throwables
private static enum Throwables.State extends java.lang.Enum<Throwables.State>
-
-
Enum Constant Summary
Enum Constants Enum Constant Description DONE
PROCESSING_OTHER_CODE
PROCESSING_REFLECTION_CODE
PROCESSING_TEST_FRAMEWORK_CODE
-
Constructor Summary
Constructors Modifier Constructor Description private
State()
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected abstract Throwables.State
processLine(java.lang.String methodName)
Processes a stack trace element method name, possibly moving to a new state.Throwables.State
processStackTraceElement(java.lang.StackTraceElement element)
Processes a stack trace element, possibly moving to a new state.static Throwables.State
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static Throwables.State[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
PROCESSING_OTHER_CODE
public static final Throwables.State PROCESSING_OTHER_CODE
-
PROCESSING_TEST_FRAMEWORK_CODE
public static final Throwables.State PROCESSING_TEST_FRAMEWORK_CODE
-
PROCESSING_REFLECTION_CODE
public static final Throwables.State PROCESSING_REFLECTION_CODE
-
DONE
public static final Throwables.State DONE
-
-
Method Detail
-
values
public static Throwables.State[] 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 (Throwables.State c : Throwables.State.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static Throwables.State 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 namejava.lang.NullPointerException
- if the argument is null
-
processLine
protected abstract Throwables.State processLine(java.lang.String methodName)
Processes a stack trace element method name, possibly moving to a new state.
-
processStackTraceElement
public final Throwables.State processStackTraceElement(java.lang.StackTraceElement element)
Processes a stack trace element, possibly moving to a new state.
-
-