public interface CodeWriter
writeClassCode that writes a class to a file.| Modifier and Type | Method and Description |
|---|---|
java.nio.file.Path |
writeClassCode(java.lang.String packageName,
java.lang.String classname,
java.lang.String classCode)
Writes the given class using this
CodeWriter. |
java.nio.file.Path |
writeUnmodifiedClassCode(java.lang.String packageName,
java.lang.String classname,
java.lang.String classCode)
Writes the given class.
|
java.nio.file.Path writeClassCode(java.lang.String packageName,
java.lang.String classname,
java.lang.String classCode)
throws RandoopOutputException
CodeWriter. May modify the class text before writing
it. May write additional files (but those are not returned).packageName - the package name of the classclassname - the simple name of the classclassCode - the text of a Java class, must be compilablePath object for the Java file writtenRandoopOutputException - if there is an error while writing the codejava.nio.file.Path writeUnmodifiedClassCode(java.lang.String packageName,
java.lang.String classname,
java.lang.String classCode)
throws RandoopOutputException
packageName - the package name of the classclassname - the simple name of the classclassCode - the text of the class to be written, must be compilablePath object for the Java file writtenRandoopOutputException - if there is an error while writing the code