org.spockframework.runtime.model
Enum BlockKind
java.lang.Object
java.lang.Enum<BlockKind>
org.spockframework.runtime.model.BlockKind
- All Implemented Interfaces:
- java.io.Serializable, java.lang.Comparable<BlockKind>
public enum BlockKind
- extends java.lang.Enum<BlockKind>
The different kind of blocks that a BlockInfo instance can represent.
- Author:
- Peter Niederwieser
Method Summary |
static BlockKind |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. |
static BlockKind[] |
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 |
SETUP
public static final BlockKind SETUP
EXPECT
public static final BlockKind EXPECT
WHEN
public static final BlockKind WHEN
THEN
public static final BlockKind THEN
CLEANUP
public static final BlockKind CLEANUP
WHERE
public static final BlockKind WHERE
values
public static BlockKind[] 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 (BlockKind c : BlockKind.values())
System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in
the order they are declared
valueOf
public static BlockKind 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
Copyright © 2013. All rights reserved