org.holtz.zoe
Enum Mutation

java.lang.Object
  extended by java.lang.Enum<Mutation>
      extended by org.holtz.zoe.Mutation
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable<Mutation>

public enum Mutation
extends java.lang.Enum<Mutation>

The kinds of mutations that can happen inside a StatementList in a Zoel program.

Author:
Brian Holtz

Enum Constant Summary
Change
           
Delete
           
Insert
           
Translocate
           
 
Method Summary
static Mutation random(java.util.Random random)
           
static Mutation valueOf(java.lang.String name)
          Returns the enum constant of this type with the specified name.
static Mutation[] 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
 

Enum Constant Detail

Insert

public static final Mutation Insert

Delete

public static final Mutation Delete

Translocate

public static final Mutation Translocate

Change

public static final Mutation Change
Method Detail

values

public static Mutation[] 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 (Mutation c : Mutation.values())
    System.out.println(c);

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

valueOf

public static Mutation 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

random

public static Mutation random(java.util.Random random)