Merge "Documented serialization method in dexfuzz mutator class" am: 58de3f7394
am: c92a07b747

Change-Id: I9e8a613651f737a0582ec0ce72b9fff989a8ce67
diff --git a/tools/dexfuzz/src/dexfuzz/program/Mutation.java b/tools/dexfuzz/src/dexfuzz/program/Mutation.java
index 2eba718..436fcc4 100644
--- a/tools/dexfuzz/src/dexfuzz/program/Mutation.java
+++ b/tools/dexfuzz/src/dexfuzz/program/Mutation.java
@@ -39,8 +39,21 @@
     this.mutatableCode = mutatableCode;
     this.mutatableCodeIdx = mutatableCode.mutatableCodeIdx;
   }
-
+  /**
+   * Serializes the field(s) of the mutation to string format.
+   * The fields are separated by a space.
+   * @return the serialized string representation of the field(s) of the mutation.
+   */
   public abstract String getString();
 
+  /**
+   * Deserializes the strings back to the field(s) of the mutation,
+   * given a string array as its argument. The string array
+   * contains the individual elements which were previously constructed by
+   * getstring() method. elements[0] stores the class name and elements[1]
+   * stores the mutable code index which are predefined in MutationSerializer.java.
+   * Users can deserialize the string representation in elements[2] and so forth.
+   * @param elements string array with serialized representations of the field(s) of the mutation.
+   */
   public abstract void parseString(String[] elements);
 }
\ No newline at end of file