public abstract class AbstractRecorder extends ClassWriter implements ObjectRecorder
AbstractRecorder is the common base class for recorders. This class provides
some convenience methods for specifying the output directory for recorded classes. It also
provides the default ClassDescriptor for the superclass ClassWriter.
It is not necessary for future class recorders to extend AbstractRecorder. This abstract class
exists for convenience only.| Modifier and Type | Field and Description |
|---|---|
protected java.io.File |
fieldDestinationDirectory |
protected java.io.FileWriter |
fieldJavaFileWriter |
CLASS, fieldDescriptor, fieldObject, fieldPrintWriter, fieldStaticClasses, fieldSuperClass, IMPORT, PACKAGE, PRIVATE, PROTECTED, PUBLIC, SPACE, tabDepth| Constructor and Description |
|---|
AbstractRecorder() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
close(java.io.Writer inWriter) |
protected ClassDescriptor |
createDefaultDescriptor() |
protected java.io.FileWriter |
createFileWriter(java.io.File inFile) |
java.io.File |
getDestination() |
protected java.io.FileWriter |
getJavaFileWriter() |
protected java.io.File |
javaFile() |
protected java.lang.Class |
objectClass() |
protected java.lang.String |
packagePath() |
protected java.io.File |
parentDirectory() |
void |
setDestination(java.io.File testDirectory)
Set the generated output directory as a
File |
void |
setDestination(java.lang.String inFileName)
Set the generated output directory as the name of a
File. |
addStaticImport, classes, closeBrace, extendClass, getClassName, getDescriptor, getObject, getPackageName, getPrintWriter, getStaticClasses, getSuperClass, newLine, openBrace, packageName, setClassName, setDescriptor, setObject, setSuperClass, setWriter, tab, tabs, write, writeClassDeclaration, writeImports, writeLine, writeObject, writeObjectBuilderMethod, writePackage, writeStaticImportsclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitrecordprotected java.io.File fieldDestinationDirectory
protected java.io.FileWriter fieldJavaFileWriter
protected java.io.FileWriter createFileWriter(java.io.File inFile)
protected java.io.FileWriter getJavaFileWriter()
protected java.io.File parentDirectory()
protected java.io.File javaFile()
protected java.lang.String packagePath()
public java.io.File getDestination()
public void setDestination(java.io.File testDirectory)
Filedirectory - public void setDestination(java.lang.String inFileName)
File.directory - protected ClassDescriptor createDefaultDescriptor()
createDefaultDescriptor in class ClassWriterprotected java.lang.Class objectClass()
protected void close(java.io.Writer inWriter)