sofya.mutator
Class MutationImpl

java.lang.Object
  extended by sofya.mutator.MutationImpl
All Implemented Interfaces:
Mutation
Direct Known Subclasses:
ClassMutation, MethodMutation

public abstract class MutationImpl
extends java.lang.Object
implements Mutation

A mutation that actually implements a classfile transformation; this provides a distinction between such mutations and those that are actually just containers for other mutations, such as MutationGroup.

Version:
09/28/2005
Author:
Alex Kinneer

Nested Class Summary
 
Nested classes/interfaces inherited from interface sofya.mutator.Mutation
Mutation.Variant
 
Constructor Summary
protected MutationImpl()
           
 
Method Summary
 MutationID getID()
          Gets the ID associated with this mutation.
 void setID(MutationID id)
          Sets the ID associated with this mutation; this method is called automatically by the framework and should never be called elsewhere.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface sofya.mutator.Mutation
accept, apply, getDefaultVariant, getType, getVariants, print, serialize, undo
 

Constructor Detail

MutationImpl

protected MutationImpl()
Method Detail

getID

public MutationID getID()
Gets the ID associated with this mutation.

Specified by:
getID in interface Mutation
Returns:
A unique identifer associated with this mutation by the mutation framework.

setID

public void setID(MutationID id)
Sets the ID associated with this mutation; this method is called automatically by the framework and should never be called elsewhere.

Specified by:
setID in interface Mutation
Parameters:
id - Unique identifier to be associated with this mutation.