@Internal public class DirectoryClassWriterOutputVisitor extends AbstractClassWriterOutputVisitor
ClassWriterOutputVisitor that writes to a target target directory.| Constructor and Description |
|---|
DirectoryClassWriterOutputVisitor(File targetDir) |
| Modifier and Type | Method and Description |
|---|---|
OutputStream |
visitClass(String className)
Visits a new class and returns the output stream with which should be written the bytes of the class to be
generated.
|
Optional<GeneratedFile> |
visitGeneratedFile(String path)
Visit a file that will be generated within the generated sources directory.
|
Optional<GeneratedFile> |
visitMetaInfFile(String path)
Visit a file within the META-INF directory of the classes directory.
|
finish, getServiceEntries, visitServiceDescriptorclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitvisitServiceDescriptorpublic DirectoryClassWriterOutputVisitor(File targetDir)
targetDir - The target directorypublic OutputStream visitClass(String className) throws IOException
ClassWriterOutputVisitorclassName - the fully qualified classnameIOException - if an error occurs creating the output streampublic Optional<GeneratedFile> visitMetaInfFile(String path)
ClassWriterOutputVisitorpath - The path to the filepublic Optional<GeneratedFile> visitGeneratedFile(String path)
ClassWriterOutputVisitorpath - The path