org.holtz.zoe
Enum Register
java.lang.Object
java.lang.Enum<Register>
org.holtz.zoe.Register
- All Implemented Interfaces:
- java.io.Serializable, java.lang.Comparable<Register>
public enum Register
- extends java.lang.Enum<Register>
A Bug
attribute that can be a Statement's Operand
in a Zoel
program.
- Author:
- Brian Holtz
Method Summary |
static Register |
fromString(java.lang.String str)
|
static Register |
random(java.util.Random random)
|
static Register |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. |
static Register[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared. |
Methods inherited from class java.lang.Enum |
compareTo, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf |
Methods inherited from class java.lang.Object |
getClass, notify, notifyAll, wait, wait, wait |
Cycle
public static final Register Cycle
ID
public static final Register ID
Species
public static final Register Species
X
public static final Register X
Y
public static final Register Y
Age
public static final Register Age
Size
public static final Register Size
Strength
public static final Register Strength
Heading
public static final Register Heading
FeelSomething
public static final Register FeelSomething
SeeSomething
public static final Register SeeSomething
Toward
public static final Register Toward
Away
public static final Register Away
Range
public static final Register Range
IsAlive
public static final Register IsAlive
IsSameSpecies
public static final Register IsSameSpecies
IsFamily
public static final Register IsFamily
IsParent
public static final Register IsParent
IsChild
public static final Register IsChild
IsAncestor
public static final Register IsAncestor
IsDescendent
public static final Register IsDescendent
Mood
public static final Register Mood
Pain
public static final Register Pain
values
public static Register[] 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 (Register c : Register.values())
System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in
the order they are declared
valueOf
public static Register 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
fromString
public static Register fromString(java.lang.String str)
random
public static Register random(java.util.Random random)